Skip to content

Commit

Permalink
fix: fix payment index (using sparse)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessie129j committed Aug 3, 2024
1 parent b92c766 commit 1fa1550
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/src/models/payment.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ paymentSchema.index(
},
{
unique: true,
partialFilterExpression: {
isDestroyed: { $eq: false },
},
sparse: true,
}
);

Expand Down

0 comments on commit 1fa1550

Please sign in to comment.