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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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