Fix getMisisngTranscriptionVoicemails

Meant whereNull, not whereNotNull.
This commit is contained in:
Matt Low 2021-03-13 15:08:14 -07:00
parent 1d4b0cbac3
commit ac30269c81

View File

@ -296,7 +296,7 @@ export function ticketize(
*/
async function getMissingTranscriptionVoicemails() {
return await db("voicemails")
.whereNotNull("transcription")
.whereNull("transcription")
.whereNotIn("transcriptionStatus", [
// Don't include those whose transcriptions have failed or will not
// be completed.