fix for inconsistent return type in start delivery

This commit is contained in:
Will Murphy 2022-11-09 10:48:02 -06:00
parent 1ad8ee1397
commit 15aff28dc5

View file

@ -37,7 +37,7 @@ client.connect()
apex.store.db = client.db(DB_NAME) apex.store.db = client.db(DB_NAME)
let resumeDeliveryTimer let resumeDeliveryTimer
function deliver () { function deliver () {
apex.startDelivery() Promise.resolve(apex.startDelivery())
.catch(err => { .catch(err => {
console.error('Error starting delivery', err) console.error('Error starting delivery', err)
}) })