Browse Source

add comment

Yuki Takei 1 year ago
parent
commit
89259b07d4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      apps/app/src/server/service/yjs.ts

+ 2 - 0
apps/app/src/server/service/yjs.ts

@@ -122,7 +122,9 @@ class YjsService {
     const Revision = mongoose.model<IRevisionHasId>('Revision');
     const result = await Revision
       .findOne(
+        // filter
         { pageId },
+        // projection
         { createdAt: 1 },
         { sort: { createdAt: -1 } },
       );