mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 17:46:18 +08:00
chore: cleanup logs
This commit is contained in:
@@ -580,7 +580,6 @@ export class CopilotSessionModel extends BaseModel {
|
||||
.reduce((prev, cost) => prev + cost, 0);
|
||||
}
|
||||
|
||||
@Transactional()
|
||||
async cleanupEmptySessions(earlyThen: Date) {
|
||||
// delete never used sessions
|
||||
const { count: removed } = await this.db.aiSession.deleteMany({
|
||||
|
||||
@@ -185,7 +185,6 @@ export class CopilotWorkspaceConfigModel extends BaseModel {
|
||||
return { workspaceId, AND: condition };
|
||||
}
|
||||
|
||||
@Transactional()
|
||||
async listEmbeddableDocIds(workspaceId: string) {
|
||||
const condition = this.getEmbeddableCondition(workspaceId);
|
||||
const rows = await this.db.snapshot.findMany({
|
||||
|
||||
Reference in New Issue
Block a user