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 2942d81 commit 856e5a5Copy full SHA for 856e5a5
1 file changed
src/schema/money/queries.ts
@@ -89,8 +89,9 @@ builder.queryFields((t) => ({
89
90
paymentLogs.forEach((p) => {
91
const key = `${p.platform}-${p.currencyId}`;
92
+ const isPaid = p.originalResponseBlob.payment_status === "paid" || p.originalResponseBlob.status === "approved";
93
- if (!consolidatedPayments[key]) {
94
+ if (!consolidatedPayments[key] || !isPaid) {
95
consolidatedPayments[key] = {
96
id: key,
97
totalTransactionAmount: 0,
0 commit comments