Mark end state in job that failed with an error.

This commit is contained in:
Alex Hart
2025-03-10 10:37:51 -03:00
committed by Greyson Parrelli
parent cf78c76bbb
commit 862628fc28
2 changed files with 2 additions and 0 deletions

View File

@@ -206,6 +206,7 @@ class InAppPaymentCheckoutDelegate(
InAppPaymentsRepository.updateInAppPayment(
inAppPayment.copy(
notified = false,
state = InAppPaymentTable.State.END,
data = inAppPayment.data.copy(
error = InAppPaymentData.Error(
type = InAppPaymentData.Error.Type.GOOGLE_PAY_REQUEST_TOKEN

View File

@@ -240,6 +240,7 @@ class InAppPaymentRedemptionJob private constructor(
SignalDatabase.inAppPayments.update(
inAppPayment = inAppPayment.copy(
state = InAppPaymentTable.State.END,
data = inAppPayment.data.copy(
error = protoError
)