Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat(server): wrong context setting on doc publish (#10080)

fengmk25a63bc0e535a
diff --git a/packages/backend/server/src/core/workspaces/resolvers/doc.ts b/packages/backend/server/src/core/workspaces/resolvers/doc.ts
index 43c56e5364..6462076d5a 100644
--- a/packages/backend/server/src/core/workspaces/resolvers/doc.ts
+++ b/packages/backend/server/src/core/workspaces/resolvers/doc.ts
@@ -280,11 +280,9 @@ export class WorkspaceDocResolver {
user.id
);
- this.logger.log('Publish page', {
- workspaceId,
- docId: rawDocId,
- mode,
- });
+ this.logger.log(
+ `Publish page ${rawDocId} with mode ${mode} in workspace ${workspaceId}`
+ );
return this.permission.publishPage(docId.workspace, docId.guid, mode);
}