From 15aff28dc51a8f7576a9c3bd70189d026ae20a92 Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Wed, 9 Nov 2022 10:48:02 -0600 Subject: [PATCH] fix for inconsistent return type in start delivery --- deliveryWorker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) })