mirror of
https://github.com/outline/outline.git
synced 2026-05-01 06:59:55 -05:00
fix: 'undefined' changed document log (#10695)
This commit is contained in:
@@ -78,12 +78,12 @@ export default class PersistenceExtension implements Extension {
|
||||
async onChange({ context, documentName }: withContext<onChangePayload>) {
|
||||
const [, documentId] = documentName.split(".");
|
||||
|
||||
Logger.debug(
|
||||
"multiplayer",
|
||||
`${context.user?.name} changed ${documentName}`
|
||||
);
|
||||
|
||||
if (context.user) {
|
||||
Logger.debug(
|
||||
"multiplayer",
|
||||
`${context.user.name} changed ${documentName}`
|
||||
);
|
||||
|
||||
const key = Document.getCollaboratorKey(documentId);
|
||||
await Redis.defaultClient.sadd(key, context.user.id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user