Skip to content

Commit 23bf29f

Browse files
committed
fix: update client payment
1 parent d0d25cd commit 23bf29f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

services/chronikService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ export class ChronikBlockchainClient {
485485
this.confirmedTxsHashesFromLastBlock = [...this.confirmedTxsHashesFromLastBlock, msg.txid]
486486
for (const addressWithTransaction of addressesWithTransactions) {
487487
const { amount, opReturn } = addressWithTransaction.transaction
488-
await this.updateClientPaymentStatus(amount, opReturn, 'CONFIRMED' as ClientPaymentStatus)
488+
await this.handleUpdateClientPaymentStatus(amount, opReturn, 'CONFIRMED' as ClientPaymentStatus)
489489
}
490490
} else if (msg.msgType === 'TX_ADDED_TO_MEMPOOL') {
491491
if (this.isAlreadyBeingProcessed(msg.txid, false)) {
@@ -505,7 +505,7 @@ export class ChronikBlockchainClient {
505505
}
506506
const { amount, opReturn } = addressWithTransaction.transaction
507507
const newClientPaymentStatus = 'ADDED_TO_MEMPOOL' as ClientPaymentStatus
508-
await this.updateClientPaymentStatus(amount, opReturn, newClientPaymentStatus)
508+
await this.handleUpdateClientPaymentStatus(amount, opReturn, newClientPaymentStatus)
509509
}
510510
}
511511
this.mempoolTxsBeingProcessed -= 1

services/transactionService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ export const generatePaymentId = async (address: string, amount?: Prisma.Decimal
10021002
return clientPayment.paymentId
10031003
}
10041004

1005-
export const updatePaymentStatus = async (paymentId: string, status: ClientPaymentStatus): Promise<void> => {
1005+
export const updateClientPaymentStatus = async (paymentId: string, status: ClientPaymentStatus): Promise<void> => {
10061006
await prisma.clientPayment.update({
10071007
where: { paymentId },
10081008
data: { status }

0 commit comments

Comments
 (0)