Update index.lua (#2473)
Bug fix in per user vm transcription. If domain had transcription enabled but the user did not, then the sql insert of the msg would fail.
This commit is contained in:
parent
096a7ec4a3
commit
39cc2ce9e8
|
|
@ -423,7 +423,7 @@
|
|||
if (storage_type == "base64") then
|
||||
table.insert(sql, "message_base64, ");
|
||||
end
|
||||
if (transcribe_enabled == "true") then
|
||||
if (transcribe_enabled == "true") and (voicemail_transcription_enabled == "true") then
|
||||
table.insert(sql, "message_transcription, ");
|
||||
end
|
||||
table.insert(sql, "message_length ");
|
||||
|
|
@ -441,7 +441,7 @@
|
|||
if (storage_type == "base64") then
|
||||
table.insert(sql, ":message_base64, ");
|
||||
end
|
||||
if (transcribe_enabled == "true") then
|
||||
if (transcribe_enabled == "true") and (voicemail_transcription_enabled == "true") then
|
||||
table.insert(sql, ":transcription, ");
|
||||
end
|
||||
table.insert(sql, ":message_length ");
|
||||
|
|
|
|||
Loading…
Reference in New Issue