mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
chore(server): reschedule doc merging jobs (#11318)
This commit is contained in:
@@ -88,6 +88,13 @@ export class DocModel extends BaseModel {
|
||||
return await this.db.update.count();
|
||||
}
|
||||
|
||||
async groupedUpdatesCount() {
|
||||
return await this.db.update.groupBy({
|
||||
by: ['workspaceId', 'id'],
|
||||
_count: true,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete updates by workspaceId, docId, and createdAts.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user