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

This commit is contained in:
agree
2022-11-03 10:49:22 -06:00
committed by GitHub
parent b88c79938b
commit d9e43cda4c
@@ -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