AND r.enabled = 'true' shows up on two lines change one to m.enabled and then add m.enabled to the second query.

This commit is contained in:
markjcrane 2015-12-22 21:30:36 -07:00
parent 56499a6cc3
commit d8ca3245c5
1 changed files with 4 additions and 2 deletions

View File

@ -449,7 +449,7 @@
AND m.domain_uuid = ']] .. domain_uuid ..[['
AND (m.moderator_pin = ']] .. pin_number ..[[' or m.participant_pin = ']] .. pin_number ..[[')
AND r.enabled = 'true'
AND r.enabled = 'true'
AND m.enabled = 'true'
AND (
( r.start_datetime <> '' AND r.start_datetime is not null AND r.start_datetime <= ']] .. os.date("%Y-%m-%d %X") .. [[' ) OR
( r.start_datetime = '' OR r.start_datetime is null )
@ -496,7 +496,9 @@
AND r.conference_center_uuid = ']] .. conference_center_uuid ..[['
AND m.domain_uuid = ']] .. domain_uuid ..[['
AND (m.moderator_pin = ']] .. pin_number ..[[' or m.participant_pin = ']] .. pin_number ..[[')
AND r.enabled = 'true' ]];
AND r.enabled = 'true'
AND m.enabled = 'true'
]];
if (debug["sql"]) then
freeswitch.consoleLog("notice", "[conference center] SQL: " .. sql .. "\n");
end