mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-15 13:42:08 +03:00
d27504f735
* feat: add max brain count * fix: prevent page cashing when invitation is invalid * feat: rename rights to role in frontend
14 lines
547 B
TypeScript
14 lines
547 B
TypeScript
import { BrainRoleType } from "@/lib/components/NavBar/components/NavItems/components/BrainsDropDown/components/BrainActions/types";
|
|
|
|
import { SubscriptionUpdatableProperties } from "../types";
|
|
|
|
type BackendSubscriptionUpdatableProperties = {
|
|
rights: BrainRoleType | null;
|
|
};
|
|
export const mapSubscriptionUpdatablePropertiesToBackendSubscriptionUpdatableProperties =
|
|
(
|
|
subscriptionUpdatableProperties: SubscriptionUpdatableProperties
|
|
): BackendSubscriptionUpdatableProperties => ({
|
|
rights: subscriptionUpdatableProperties.role,
|
|
});
|