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)";