mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-03 12:28:13 +03:00
feat: remove stale showcase stats when folders change
This commit is contained in:
@@ -7,6 +7,7 @@ import { PullDatabaseSeeds } from "lib/database-seeds/repo";
|
||||
import CreateLogCtx, { KtLogger } from "lib/logger/logger";
|
||||
import UpdateIsPrimaryStatus from "lib/score-mutation/update-isprimary";
|
||||
import { TachiConfig } from "lib/setup/config";
|
||||
import { RemoveStaleFolderShowcaseStats } from "lib/showcase/showcase";
|
||||
import { UpdateMilestoneSubscriptions } from "lib/targets/milestones";
|
||||
import { BulkWriteOperation } from "mongodb";
|
||||
import { ICollection } from "monk";
|
||||
@@ -221,6 +222,7 @@ const syncInstructions: SyncInstructions[] = [
|
||||
|
||||
if (r) {
|
||||
await InitaliseFolderChartLookup();
|
||||
await RemoveStaleFolderShowcaseStats(r.changedFields as string[]);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user