mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Add. Use params in send_mail.lua (#2142)
This commit is contained in:
committed by
FusionPBX
parent
a7bd0b0864
commit
749d6cbe34
@@ -52,15 +52,23 @@ if not freeswitch then
|
||||
sql = sql .. "status, "
|
||||
sql = sql .. "email "
|
||||
sql = sql .. ") values ( "
|
||||
sql = sql .. "'" .. email_uuid .. "', "
|
||||
if call_uuid then sql = sql .. "'" .. call_uuid .. "', " end
|
||||
sql = sql .. "'" .. domain_uuid .. "', "
|
||||
sql = sql .. ":email_uuid, "
|
||||
if call_uuid then sql = sql .. ":call_uuid, " end
|
||||
sql = sql .. ":domain_uuid, "
|
||||
sql = sql .. "now(),"
|
||||
sql = sql .. "'" .. email_type .. "', "
|
||||
sql = sql .. ":email_type, "
|
||||
sql = sql .. "'failed', "
|
||||
sql = sql .. "'' "
|
||||
sql = sql .. ") "
|
||||
db:query(sql)
|
||||
|
||||
local params = {
|
||||
email_uuid = email_uuid;
|
||||
call_uuid = call_uuid;
|
||||
domain_uuid = domain_uuid;
|
||||
email_type = email_type;
|
||||
}
|
||||
|
||||
db:query(sql, params)
|
||||
|
||||
log.infof("Retained in v_emails as email_uuid = %s", email_uuid)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user