mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
Fix: Incorrect database check in sqlHourOffset (#3706)
This commit is contained in:
parent
a8bc0f8d6a
commit
f3e1a9c61a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue