Fix: Use single quotes in SQL queries
All checks were successful
Auto Build and Push Docker Image / build (push) Successful in 6s
All checks were successful
Auto Build and Push Docker Image / build (push) Successful in 6s
Change SQL queries from double quotes to single quotes for SQLite compatibility in TwitchManager. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -66,14 +66,14 @@ export class TwitchManager {
|
|||||||
if (wasOffline || (monitor.last_status === 'online' && isNewStream)) {
|
if (wasOffline || (monitor.last_status === 'online' && isNewStream)) {
|
||||||
await this.sendNotification(client, monitor, stream);
|
await this.sendNotification(client, monitor, stream);
|
||||||
(client as any).DB?.run(
|
(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,
|
stream.id,
|
||||||
monitor.id
|
monitor.id
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (monitor.last_status === 'online') {
|
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) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user