Skip to content

Commit

Permalink
chore: add index to WalletInvoice
Browse files Browse the repository at this point in the history
- index on processingCompleted
  • Loading branch information
UncleSamtoshi committed Nov 16, 2023
1 parent 878c9fe commit 5ddf9dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/api/src/services/mongoose/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const walletInvoiceSchema = new Schema<WalletInvoiceRecord>({
},
})

walletInvoiceSchema.index({ walletId: 1, paid: 1 })
walletInvoiceSchema.index({ walletId: 1, paid: 1, processingCompleted: 1 })

export const WalletInvoice = mongoose.model<WalletInvoiceRecord>(
"InvoiceUser",
Expand Down

0 comments on commit 5ddf9dc

Please sign in to comment.