???
All checks were successful
Build / build (pull_request) Successful in 56s

This commit is contained in:
Sainan 2025-06-25 05:33:08 +02:00
parent 84c116f9bf
commit 079a0fc423

View File

@ -76,6 +76,6 @@ export const saveConfig = async (): Promise<void> => {
export const syncConfigWithDatabase = (): void => { export const syncConfigWithDatabase = (): void => {
// Event messages are deleted after endDate. Since we don't use beginDate/endDate and instead have config toggles, we need to delete the messages once those bools are false. // Event messages are deleted after endDate. Since we don't use beginDate/endDate and instead have config toggles, we need to delete the messages once those bools are false.
if (!config.worldState?.galleonOfGhouls) { if (!config.worldState?.galleonOfGhouls) {
void Inbox.deleteMany({ goalTag: "GalleonRobbery" }); void Inbox.deleteMany({ goalTag: "GalleonRobbery" }).then(() => {}); // For some reason, I can't just do `Inbox.deleteMany(...)`; it needs this whole circus.
} }
}; };