fix: doc preview action;update doc (#5383)

* fix: doc preview action

* update doc

* dpc
This commit is contained in:
Archer
2025-08-04 18:10:58 +08:00
committed by GitHub
parent 61899d9baf
commit 16a74c909d
10 changed files with 285 additions and 318 deletions

View File

@@ -61,8 +61,7 @@ const UsageSchema = new Schema({
});
try {
UsageSchema.index({ teamId: 1, time: 1, tmbId: 1, source: 1 });
UsageSchema.index({ teamId: 1, time: 1, appName: 1 });
UsageSchema.index({ teamId: 1, tmbId: 1, source: 1, time: 1, appName: 1 });
// timer task. clear dead team
// UsageSchema.index({ teamId: 1, time: -1 });