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 20d263d commit 8897cbb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion functions/routes/ecom/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
})

Expand Down

0 comments on commit 8897cbb

Please sign in to comment.