set dbh if there isn't a global dbh set (#6489)

This commit is contained in:
agree 2022-11-03 12:49:22 -04:00 committed by GitHub
parent b88c79938b
commit d9e43cda4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,8 @@
--define the trim function
require "resources.functions.trim";
local Database = require "resources.functions.database";
local dbh = dbh or Database.new("system");
--include json library
local json