fix: Plug memory leak in collaboration server

This commit is contained in:
Tom Moor
2021-11-05 16:55:20 -07:00
parent 6df8e9e13f
commit ed8334d77a
5 changed files with 29 additions and 24 deletions

View File

@@ -3,11 +3,11 @@ import Logger from "../logging/logger";
import { User } from "../models";
export default class CollaborationLogger {
async onCreateDocument(data: {
async onLoadDocument(data: {
documentName: string,
context: { user: User },
}) {
Logger.info("hocuspocus", `Created document "${data.documentName}"`, {
Logger.info("hocuspocus", `Loaded document "${data.documentName}"`, {
userId: data.context.user.id,
});
}