Skip to content

Commit

Permalink
Update webhook.js
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 authored Dec 31, 2024
1 parent 8897cbb commit 195a38e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/routes/ecom/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 195a38e

Please sign in to comment.