mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-14 21:21:56 +03:00
d27504f735
* feat: add max brain count * fix: prevent page cashing when invitation is invalid * feat: rename rights to role in frontend
13 lines
344 B
TypeScript
13 lines
344 B
TypeScript
import {
|
|
BackendMinimalBrainForUser,
|
|
MinimalBrainForUser,
|
|
} from "@/lib/context/BrainProvider/types";
|
|
|
|
export const mapBackendMinimalBrainToMinimalBrain = (
|
|
backendMinimalBrain: BackendMinimalBrainForUser
|
|
): MinimalBrainForUser => ({
|
|
id: backendMinimalBrain.id,
|
|
name: backendMinimalBrain.name,
|
|
role: backendMinimalBrain.rights,
|
|
});
|