From a9baddb6e02c6a74bec3762ebcb32e34481b3d67 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 11 May 2023 13:23:13 -0600 Subject: [PATCH] prevent domain_uuid nil error If the domain_uuid is null then use a random uuid to prevent an error and allow domain_uuid is null SQL to still run --- app/scripts/resources/scripts/app/call_block/index.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/scripts/resources/scripts/app/call_block/index.lua b/app/scripts/resources/scripts/app/call_block/index.lua index 140f00e72d..e9317f8547 100644 --- a/app/scripts/resources/scripts/app/call_block/index.lua +++ b/app/scripts/resources/scripts/app/call_block/index.lua @@ -73,6 +73,11 @@ --disable the cache cached_value = nil; +--domain_uuid is null then use a random uuid to prevent an error and allow domain_uuid is null SQL to still run + if (domain_uuid == nil) then + domain_uuid = '74040b66-ca70-4a80-84b5-8cb2139c07dd'; + end + --run call block one time if (call_block == nil and call_block ~= 'true') then