From d65e613cddeb0a2a9cadc90a4969aebf3fee038c Mon Sep 17 00:00:00 2001 From: sarah Date: Sun, 22 Mar 2026 18:04:58 +0100 Subject: [PATCH] Fix: Use single quotes in SQL queries Change SQL queries from double quotes to single quotes for SQLite compatibility in TwitchManager. Co-Authored-By: Claude Opus 4.6 --- src/structures/TwitchManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/TwitchManager.ts b/src/structures/TwitchManager.ts index f2953c8..7c6a61b 100644 --- a/src/structures/TwitchManager.ts +++ b/src/structures/TwitchManager.ts @@ -66,14 +66,14 @@ export class TwitchManager { if (wasOffline || (monitor.last_status === 'online' && isNewStream)) { await this.sendNotification(client, monitor, stream); (client as any).DB?.run( - 'UPDATE twitch_monitors SET last_status = "online", last_stream_id = ? WHERE id = ?', + "UPDATE twitch_monitors SET last_status = 'online', last_stream_id = ? WHERE id = ?", stream.id, monitor.id ); } } else { if (monitor.last_status === 'online') { - (client as any).DB?.run('UPDATE twitch_monitors SET last_status = "offline", last_stream_id = NULL WHERE id = ?', monitor.id); + (client as any).DB?.run("UPDATE twitch_monitors SET last_status = 'offline', last_stream_id = NULL WHERE id = ?", monitor.id); } } } catch (error) {