diff --git a/src/ticketize.ts b/src/ticketize.ts index 826873f..f7a30bb 100644 --- a/src/ticketize.ts +++ b/src/ticketize.ts @@ -418,22 +418,20 @@ export function ticketize( return [ setAsyncInterval( () => { - const promise = fetchAndStoreNewVoicemails(firstRun); + const promise = fetchAndStoreNewVoicemails(firstRun).catch( + catchHandler + ); firstRun = false; - return promise.catch(catchHandler); + return promise; }, 60 * 1000, true // immediate ), setAsyncInterval( () => fetchMissingTranscriptions().catch(catchHandler), - 60 * 1000, - true - ), - setAsyncInterval( - () => createTickets().catch(catchHandler), - 60 * 1000, + 15 * 1000, true ), + setAsyncInterval(() => createTickets().catch(catchHandler), 1000, true), ]; }