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 6af4991 commit 69890faCopy full SHA for 69890fa
1 file changed
src/schema/money/queries.ts
@@ -94,8 +94,12 @@ builder.queryFields((t) => ({
94
95
paymentLogs.forEach((p) => {
96
const key = `${p.platform}-${p.currencyId}`;
97
- const blob = p.originalResponseBlob as PaymentResponseBlob | null | undefined;
98
- const isPaid = blob?.payment_status === "paid" || blob?.status === "approved";
+ const blob = p.originalResponseBlob as
+ | PaymentResponseBlob
99
+ | null
100
+ | undefined;
101
+ const isPaid =
102
+ blob?.payment_status === "paid" || blob?.status === "approved";
103
104
if (!consolidatedPayments[key] || !isPaid) {
105
consolidatedPayments[key] = {
0 commit comments