chore: cleanup logs

This commit is contained in:
DarkSky
2025-11-16 11:13:56 +08:00
parent 3a13bdcc3d
commit 62fe6982fb
3 changed files with 7 additions and 9 deletions
@@ -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({