Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/schema/money/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@

paymentLogs.forEach((p) => {
const key = `${p.platform}-${p.currencyId}`;
const isPaid = p.originalResponseBlob.payment_status === "paid" || p.originalResponseBlob.status === "approved";

Check failure on line 92 in src/schema/money/queries.ts

View workflow job for this annotation

GitHub Actions / Linting and Typechecking

'p.originalResponseBlob' is of type 'unknown'.

Check failure on line 92 in src/schema/money/queries.ts

View workflow job for this annotation

GitHub Actions / Linting and Typechecking

'p.originalResponseBlob' is of type 'unknown'.

if (!consolidatedPayments[key]) {
if (!consolidatedPayments[key] || !isPaid) {
consolidatedPayments[key] = {
id: key,
totalTransactionAmount: 0,
Expand Down
Loading