Fix call block increment count

This commit is contained in:
FusionPBX
2025-04-09 10:06:27 -06:00
committed by GitHub
parent 8564133d7b
commit 20d2d59e9b

View File

@@ -243,7 +243,11 @@
--update the call block count
if (call_block) then
sql = "update v_call_block ";
sql = sql .. "set call_block_count = call_block_count + 1 ";
if (call_block_count == nil or call_block_count == '') then
sql = sql .. "set call_block_count = '1' ";
else
sql = sql .. "set call_block_count = call_block_count + 1 ";
end
sql = sql .. "where call_block_uuid = :call_block_uuid ";
local params = {call_block_uuid = call_block_uuid};
if (debug["sql"]) then