refactor: replace cleanup service with focused temp role service and fix daily streaks

This commit is contained in:
syntaxbullet
2026-01-07 11:04:34 +01:00
parent 4a1e72c5f3
commit ca392749e3
9 changed files with 206 additions and 341 deletions

View File

@@ -69,12 +69,7 @@ export interface GameConfigType {
autoTimeoutThreshold?: number;
};
};
system: {
cleanup: {
intervalMs: number;
questArchiveDays: number;
};
};
system: Record<string, any>;
}
// Initial default config state
@@ -167,17 +162,7 @@ const configSchema = z.object({
dmOnWarn: true
}
}),
system: z.object({
cleanup: z.object({
intervalMs: z.number().default(24 * 60 * 60 * 1000), // Daily
questArchiveDays: z.number().default(30)
})
}).default({
cleanup: {
intervalMs: 24 * 60 * 60 * 1000,
questArchiveDays: 30
}
})
system: z.record(z.string(), z.any()).default({}),
});
export function reloadConfig() {