Skip to content

Commit 8aee9e8

Browse files
committed
fix extra error when finding dbs crashes
Signed-off-by: RedGuy12 <paul@reid-family.org>
1 parent 6cb4536 commit 8aee9e8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

common/database.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ import { extractMessageExtremities } from "../util/discord.js";
77
import logError from "./logError.js";
88
import { getLoggingThread } from "../modules/logging/misc.js";
99

10+
let timeouts: {
11+
[key: Snowflake]:
12+
| { callback: () => Promise<Message<true>>; timeout: NodeJS.Timeout }
13+
| undefined;
14+
} = {};
15+
1016
export const DATABASE_THREAD = "databases";
1117

1218
const thread = await getLoggingThread(DATABASE_THREAD);
@@ -28,11 +34,6 @@ for (const message of (await thread.messages.fetch({ limit: 100 })).toJSON()) {
2834
}
2935
}
3036

31-
let timeouts: {
32-
[key: Snowflake]:
33-
| { callback: () => Promise<Message<true>>; timeout: NodeJS.Timeout }
34-
| undefined;
35-
} = {};
3637

3738
const contructed: string[] = [];
3839

0 commit comments

Comments
 (0)