Fix: Incorrect database check in sqlHourOffset (#3706)

pull/3707/head^2
Nelson Chan 1 year ago committed by GitHub
parent a8bc0f8d6a
commit f3e1a9c61a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save