mirror of
https://github.com/docmost/docmost.git
synced 2026-05-20 00:14:10 +08:00
WIP
This commit is contained in:
@@ -157,7 +157,7 @@ export class PersistenceExtension implements Extension {
|
||||
page: {
|
||||
...page,
|
||||
content: tiptapJson,
|
||||
lastUpdatedById: context.user.id,
|
||||
lastUpdatedById: context?.user?.id,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -179,7 +179,7 @@ export class PersistenceExtension implements Extension {
|
||||
|
||||
async onChange(data: onChangePayload) {
|
||||
const documentName = data.documentName;
|
||||
const userId = data.context?.user.id;
|
||||
const userId = data.context?.user?.id;
|
||||
if (!userId) return;
|
||||
|
||||
if (!this.contributors.has(documentName)) {
|
||||
|
||||
Reference in New Issue
Block a user