Skip to content

Commit

Permalink
fix: balance cache invalidation on transaction creation (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomudding authored Feb 13, 2025
1 parent 8ffb1ee commit 9d229d3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/service/transaction-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -667,12 +667,8 @@ export default class TransactionService extends WithManager {

await transaction.save();

// save the transaction and invalidate user balance cache
const savedTransaction = await this.asTransactionResponse(transaction);
await TransactionService.invalidateBalanceCache(savedTransaction);

// save transaction and return response
return savedTransaction;
return this.asTransactionResponse(transaction);
}

/**
Expand Down

0 comments on commit 9d229d3

Please sign in to comment.