Attempt to fix race condition with database instantiation

This commit is contained in:
Jamie Curnow committed 2025-11-07 09:46:00 +10:00
1 parent 4cb85f6480
commit 51e25d1a40
16 files changed
+26 -17

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ import { Model } from "objection";
import db from "../db.js";
import now from "./now_helper.js";
Model.knex(db);
Model.knex(db());
class UserPermission extends Model {
$beforeInsert () {