We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd9c6a4 commit 662fba2Copy full SHA for 662fba2
apps/test-bot/src/commands/misc/xp.ts
@@ -10,22 +10,9 @@ async function getUserXP(guildId: string, userId: string) {
10
'use cache';
11
12
const key = `xp:${guildId}:${userId}`;
13
- console.log('[getUserXP] Before database.get', {
14
- key,
15
- timestamp: Date.now(),
16
- });
17
-
18
- const xp: number = (await database.get(key)) ?? 0;
19
20
- console.log('[getUserXP] After database.get', {
21
22
- xp,
23
24
25
26
cacheTag(key);
27
28
- console.log(`Cached XP: ${xp} for ${key} = ${xp}`);
+ const xp: number = (await database.get(key)) ?? 0;
29
30
return xp;
31
}
0 commit comments