Fix. Create dbh object in fax_retry.lua (#2168)
This commit is contained in:
committed by
FusionPBX
parent
4ff9f0c756
commit
a7c972ba2d
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
--connect to the database
|
--connect to the database
|
||||||
local Database = require "resources.functions.database";
|
local Database = require "resources.functions.database";
|
||||||
dbh = database_handle('system');
|
dbh = Database.new('system');
|
||||||
|
|
||||||
--include json library
|
--include json library
|
||||||
local json
|
local json
|
||||||
@@ -388,7 +388,6 @@
|
|||||||
freeswitch.consoleLog("notice", "[FAX] SQL: " .. sql .. "; params:" .. json.encode(params) .. "\n");
|
freeswitch.consoleLog("notice", "[FAX] SQL: " .. sql .. "; params:" .. json.encode(params) .. "\n");
|
||||||
--end
|
--end
|
||||||
if (storage_type == "base64") then
|
if (storage_type == "base64") then
|
||||||
local Database = require "resources.functions.database"
|
|
||||||
local dbh = Database.new('system', 'base64');
|
local dbh = Database.new('system', 'base64');
|
||||||
dbh:query(sql, params);
|
dbh:query(sql, params);
|
||||||
dbh:release();
|
dbh:release();
|
||||||
|
|||||||
Reference in New Issue
Block a user