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