Skip to content

Commit f55d9e5

Browse files
committed
style: apply lint formatting
1 parent 083008b commit f55d9e5

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/bot/commands/redeem.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,7 @@ export async function execute(interaction: ChatInputCommandInteraction) {
176176
if (wasRedeemedByOther) {
177177
// Second user redeeming successfully - make it public
178178
shouldBePublic = true;
179-
logger.info(
180-
`[REDEEM] Code ${code} will be auto-made public (second successful redeem)`
181-
);
179+
logger.info(`[REDEEM] Code ${code} will be auto-made public (second successful redeem)`);
182180
}
183181
}
184182

src/bot/database/codeManager.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@ class CodeManager {
9393
}
9494

9595
async isCodePublic(code: string): Promise<boolean> {
96-
const result = await db.get('SELECT code FROM redeemed_codes WHERE code = ? AND is_public = 1', [
97-
code,
98-
]);
96+
const result = await db.get(
97+
'SELECT code FROM redeemed_codes WHERE code = ? AND is_public = 1',
98+
[code]
99+
);
99100
return result !== undefined;
100101
}
101102

0 commit comments

Comments
 (0)