diff --git a/deliveryWorker.js b/deliveryWorker.js index 6a4bc64..aa7f0f6 100644 --- a/deliveryWorker.js +++ b/deliveryWorker.js @@ -37,7 +37,7 @@ client.connect() apex.store.db = client.db(DB_NAME) let resumeDeliveryTimer function deliver () { - apex.startDelivery() + Promise.resolve(apex.startDelivery()) .catch(err => { console.error('Error starting delivery', err) })