Skip to content

Commit 8897cbb

Browse files
authored
Update webhook.js
1 parent 20d263d commit 8897cbb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

functions/routes/ecom/webhook.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ exports.post = async ({ appSdk }, req, res) => {
4646
docId = trigger.resource_id || trigger.inserted_id
4747
}
4848
if (docId) {
49-
console.log('sending order', docId)
49+
// console.log('sending order', docId)
50+
/*
5051
const docEndpoint = `orders/${docId}.json`
5152
return appSdk.apiRequest(storeId, docEndpoint).then(async ({ response }) => {
5253
const order = response.data
@@ -80,6 +81,8 @@ exports.post = async ({ appSdk }, req, res) => {
8081
return res.sendStatus(status)
8182
})
8283
}
84+
*/
85+
console.log('nothing to do, all done on scheduled function')
8386
res.sendStatus(204)
8487
})
8588

0 commit comments

Comments
 (0)