We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0589564 commit b6070c9Copy full SHA for b6070c9
service/src/storage/mongo.ts
@@ -71,7 +71,8 @@ export async function updateAmountMinusOne(userId: string) {
71
export async function updateGiftCards(data: GiftCard[], overRide = true) {
72
if (overRide) {
73
// i am not sure is there a drop option for the node driver reference https://mongodb.github.io/node-mongodb-native/6.4/
74
- await redeemCol.deleteMany({})
+ // await redeemCol.deleteMany({})
75
+ await redeemCol.drop()
76
}
77
const insertResult = await redeemCol.insertMany(data)
78
return insertResult
0 commit comments