aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/pay-merchant.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-01-10 17:11:34 -0300
committerSebastian <sebasjm@gmail.com>2023-01-11 15:30:14 -0300
commit335d22b12b3d8ed1a14d39bf8ca17faade9ca34c (patch)
treeb70fa6cb38fdd0951287da17b51671497cce7678 /packages/taler-wallet-core/src/operations/pay-merchant.ts
parent52be8c915885351cf79f065a7c1787ce8ee7ec89 (diff)
downloadwallet-core-335d22b12b3d8ed1a14d39bf8ca17faade9ca34c.tar.xz
when as number instead of string, fix codec used before declaration, pretty
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pay-merchant.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/pay-merchant.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts b/packages/taler-wallet-core/src/operations/pay-merchant.ts
index 586f2638f..0360f7395 100644
--- a/packages/taler-wallet-core/src/operations/pay-merchant.ts
+++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts
@@ -1822,7 +1822,7 @@ export async function processPurchase(
errorDetail: {
// FIXME: allocate more specific error code
code: TalerErrorCode.WALLET_UNEXPECTED_EXCEPTION,
- when: new Date().toISOString(),
+ when: AbsoluteTime.now(),
hint: `trying to pay for purchase that is not in the database`,
proposalId: proposalId,
},
@@ -1873,7 +1873,7 @@ export async function processPurchasePay(
errorDetail: {
// FIXME: allocate more specific error code
code: TalerErrorCode.WALLET_UNEXPECTED_EXCEPTION,
- when: new Date().toISOString(),
+ when: AbsoluteTime.now(),
hint: `trying to pay for purchase that is not in the database`,
proposalId: proposalId,
},
@@ -1952,7 +1952,7 @@ export async function processPurchasePay(
await scheduleRetry(ws, RetryTags.forPay(purchase), {
code: TalerErrorCode.WALLET_UNEXPECTED_EXCEPTION,
- when: new Date().toISOString(),
+ when: AbsoluteTime.now(),
message: "unexpected exception",
hint: "unexpected exception",
details: {