From 195a38e6e7640cbdaf668e0ec004392e83b2d49f Mon Sep 17 00:00:00 2001 From: Leonardo Matos Date: Tue, 31 Dec 2024 19:33:55 -0300 Subject: [PATCH] Update webhook.js --- functions/routes/ecom/webhook.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/routes/ecom/webhook.js b/functions/routes/ecom/webhook.js index 6d48afc..5b3fb71 100644 --- a/functions/routes/ecom/webhook.js +++ b/functions/routes/ecom/webhook.js @@ -45,9 +45,9 @@ exports.post = async ({ appSdk }, req, res) => { if (trigger.action !== 'delete' && resource === 'orders') { 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