Change dbh to db to fix an error seen in the logs.

This commit is contained in:
FusionPBX
2020-09-07 18:37:20 -06:00
committed by GitHub
parent b29b9cdac9
commit 1db78cf7ea

View File

@@ -18,7 +18,7 @@ if (err == 'NOT FOUND') then
sql = "select default_setting_value from v_default_settings "
sql = sql .. "where default_setting_category = 'email' ";
sql = sql .. "and default_setting_subcategory = 'method' ";
email_method = dbh:first_value(sql, nil);
email_method = db:first_value(sql, nil);
if (email_method) then
local ok, err = cache.set(email_method_key, email_method, expire["dialplan"]);
end