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
This commit is contained in:
FusionPBX 2023-05-11 13:23:13 -06:00 committed by GitHub
parent 2a3d9e8e3d
commit a9baddb6e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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