feat: galleon of ghouls #2280

Merged
OrdisPrime merged 4 commits from galleon-robberies into main 2025-06-25 08:04:04 -07:00
Showing only changes of commit 079a0fc423 - Show all commits

View File

@ -76,6 +76,6 @@ export const saveConfig = async (): Promise<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.
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.
}
};