From f3e1a9c61a97cdb6d32877156ec779d248a54f01 Mon Sep 17 00:00:00 2001 From: Nelson Chan <3271800+chakflying@users.noreply.github.com> Date: Thu, 7 Sep 2023 14:00:49 +0800 Subject: [PATCH] Fix: Incorrect database check in sqlHourOffset (#3706) --- server/database.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/database.js b/server/database.js index 736d7043c..6af8b9b0e 100644 --- a/server/database.js +++ b/server/database.js @@ -653,7 +653,7 @@ class Database { * */ static sqlHourOffset() { - if (this.dbConfig.client === "sqlite3") { + if (Database.dbConfig.type === "sqlite") { return "DATETIME('now', ? || ' hours')"; } else { return "DATE_ADD(NOW(), INTERVAL ? HOUR)";