👔(backend) change field displayed on users endpoint

Change the field displayed on the users endpoint.
We need the email field to be displayed.
This commit is contained in:
Anthony LC
2024-05-29 21:26:01 +02:00
committed by Anthony LC
parent b4b308bda9
commit dbd4477e9a
4 changed files with 5 additions and 18 deletions

View File

@@ -8,5 +8,4 @@
export interface User {
id: string;
email: string;
name?: string;
}

View File

@@ -51,12 +51,12 @@ export const BlockNoteContent = ({ pad, provider }: BlockNoteContentProps) => {
provider,
fragment: provider.doc.getXmlFragment('document-store'),
user: {
name: userData?.name || userData?.email || 'Anonymous',
name: userData?.email || 'Anonymous',
color: randomColor(),
},
},
});
}, [provider, storedEditor, userData?.email, userData?.name]);
}, [provider, storedEditor, userData?.email]);
useEffect(() => {
setEditor(pad.id, editor);