Skip to content

Commit 195a38e

Browse files
authored
Update webhook.js
1 parent 8897cbb commit 195a38e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/routes/ecom/webhook.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ exports.post = async ({ appSdk }, req, res) => {
4545
if (trigger.action !== 'delete' && resource === 'orders') {
4646
docId = trigger.resource_id || trigger.inserted_id
4747
}
48+
/*
4849
if (docId) {
49-
// console.log('sending order', docId)
50-
/*
50+
console.log('sending order', docId)
5151
const docEndpoint = `orders/${docId}.json`
5252
return appSdk.apiRequest(storeId, docEndpoint).then(async ({ response }) => {
5353
const order = response.data

0 commit comments

Comments
 (0)