mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-06 00:41:39 +08:00
fix(server): limit max batch pulled doc updates
This commit is contained in:
@@ -92,6 +92,7 @@ export class DocModel extends BaseModel {
|
|||||||
orderBy: {
|
orderBy: {
|
||||||
createdAt: 'asc',
|
createdAt: 'asc',
|
||||||
},
|
},
|
||||||
|
take: 100,
|
||||||
});
|
});
|
||||||
return rows.map(r => this.updateToDocRecord(r));
|
return rows.map(r => this.updateToDocRecord(r));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user