From 953cd9dc41ff3d52d23fe77f4ba3c18281e9d58f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 14 Aug 2020 15:53:50 +0530 Subject: nuke some console.log statements, test wallet testing functionality in integration test --- packages/taler-wallet-core/src/operations/refund.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-core/src/operations/refund.ts') diff --git a/packages/taler-wallet-core/src/operations/refund.ts b/packages/taler-wallet-core/src/operations/refund.ts index 9ee71012e..fb39aa638 100644 --- a/packages/taler-wallet-core/src/operations/refund.ts +++ b/packages/taler-wallet-core/src/operations/refund.ts @@ -50,7 +50,7 @@ import { AmountString, } from "../types/talerTypes"; import { guardOperationException } from "./errors"; -import { getTimestampNow } from "../util/time"; +import { getTimestampNow, Timestamp } from "../util/time"; import { Logger } from "../util/logging"; import { readSuccessResponseJsonOrThrow } from "../util/http"; import { TransactionHandle } from "../util/query"; @@ -142,6 +142,7 @@ async function applySuccessfulRefund( p.refunds[refundKey] = { type: RefundState.Applied, + obtainedTime: getTimestampNow(), executionTime: r.execution_time, refundAmount: Amounts.parseOrThrow(r.refund_amount), refundFee: denom.feeRefund, @@ -191,6 +192,7 @@ async function storePendingRefund( p.refunds[refundKey] = { type: RefundState.Pending, + obtainedTime: getTimestampNow(), executionTime: r.execution_time, refundAmount: Amounts.parseOrThrow(r.refund_amount), refundFee: denom.feeRefund, -- cgit v1.2.3