Commit Graph

15 Commits

Author SHA1 Message Date
3cf0188a8e Add DEBUG RingCentral request logging 2021-03-14 12:26:44 -06:00
4da9429e6e Allow fromName to be null 2021-03-14 12:17:42 -06:00
d9ac440498 Handle refresh errors by re-authenticating 2021-03-14 12:16:59 -06:00
ac30269c81 Fix getMisisngTranscriptionVoicemails
Meant whereNull, not whereNotNull.
2021-03-13 15:08:14 -07:00
1d4b0cbac3 Add request logging 2021-03-13 15:05:53 -07:00
83784bec8f Improve refresh error logging 2021-03-13 14:51:32 -07:00
30d95657cf Add RingCentral token refresh error logging. 2021-03-11 15:11:11 -07:00
1c1682fe4f Move duration column to recordings table 2021-03-11 12:52:08 -07:00
0946158005 Add FIRST_RUN_AGE variable
Allows setting the maximum age of voicemails to fetch on the first run.

Other changes:
- Refactor `from` to `age` in function parameters
- Improve README
2021-03-11 11:55:50 -07:00
39cd664b3c Modify template to indicate when a transcription is partial 2021-03-11 11:15:43 -07:00
1052dfc1b1 Adjust intervals
We still fetch voicemails from RingCentral every 60 seconds, but now we
check for missing transcriptions every 15 seconds, and poll the database
for voicemails that are ready to be ticketized every second.
2021-03-11 11:04:32 -07:00
3452cd143a Add "recordings" table, save raw audio blobs in it
Other changes:
- Move Stored(Voicemail|Recording) interfaces into knex/types/tables
module for reduced boilerplate.
- Change updateStoredVoicemail to take Partial<StoredVoicemail>,
allowing to only update only some columns
2021-03-11 10:59:08 -07:00
dfabc13e8e Add README 2021-03-10 22:23:41 -07:00
fd54a8e4dd Initial commit 2021-03-10 22:10:47 -07:00
4e533f5e7b root commit 2021-03-10 21:52:26 -07:00