From 8897cbbf8ffc61014d8302adb47f2699e3ba0490 Mon Sep 17 00:00:00 2001 From: Leonardo Matos Date: Tue, 31 Dec 2024 19:32:23 -0300 Subject: [PATCH] Update webhook.js --- functions/routes/ecom/webhook.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/routes/ecom/webhook.js b/functions/routes/ecom/webhook.js index 2cee9ac..6d48afc 100644 --- a/functions/routes/ecom/webhook.js +++ b/functions/routes/ecom/webhook.js @@ -46,7 +46,8 @@ exports.post = async ({ appSdk }, req, res) => { docId = trigger.resource_id || trigger.inserted_id } if (docId) { - console.log('sending order', docId) + // console.log('sending order', docId) + /* const docEndpoint = `orders/${docId}.json` return appSdk.apiRequest(storeId, docEndpoint).then(async ({ response }) => { const order = response.data @@ -80,6 +81,8 @@ exports.post = async ({ appSdk }, req, res) => { return res.sendStatus(status) }) } + */ + console.log('nothing to do, all done on scheduled function') res.sendStatus(204) })