mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-07 10:55:14 +00:00
Attempt to fix race condition with database instantiation
This commit is contained in:
@@ -2,7 +2,7 @@ import { Model } from "objection";
|
||||
import db from "../db.js";
|
||||
import { isSqlite } from "../lib/config.js";
|
||||
|
||||
Model.knex(db);
|
||||
Model.knex(db());
|
||||
|
||||
export default () => {
|
||||
if (isSqlite()) {
|
||||
|
||||
Reference in New Issue
Block a user