Skip to content

Commit 2a9d007

Browse files
chore: remove logs
1 parent 69f69ad commit 2a9d007

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

functions/lib/cron-add-carts.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ module.exports = async ({ appSdk }) => {
1313

1414
for (let i = 0; i < docs.length; i++) {
1515
const { storeId, data, url } = docs[i].data()
16-
console.log(storeId, url)
1716
const cartId = docs[i].ref.id
1817
console.log('cart id', cartId)
1918
let cart
@@ -30,9 +29,8 @@ module.exports = async ({ appSdk }) => {
3029
throw error
3130
}
3231
}
33-
32+
console.log('cart before send', cart.completed, 'index:', i, 'store', storeId, 'url', url)
3433
if (cart && !cart.completed) {
35-
console.log('cart before send', cart.items && cart.items.length, 'index:', i)
3634
data.cart = cart
3735
return axios({
3836
method: 'post',
@@ -41,10 +39,8 @@ module.exports = async ({ appSdk }) => {
4139
}).then(async ({ status, data }) => {
4240
console.log(`> ${status}`, JSON.stringify(data))
4341
await docs[i].ref.delete()
44-
console.log('foi excluido', storeId)
4542
})
4643
}
47-
console.log('index after delete', i, storeId)
4844
await docs[i].ref.delete()
4945
}
5046
}

0 commit comments

Comments
 (0)