[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 04/08: fix date query parameter
From: |
gnunet |
Subject: |
[taler-wallet-core] 04/08: fix date query parameter |
Date: |
Mon, 07 Aug 2023 13:14:54 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit 9f776d3fb0de01c44ca7b6efcdbcf89655a6ac3f
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Aug 7 06:51:26 2023 -0300
fix date query parameter
---
packages/merchant-backoffice-ui/src/hooks/backend.ts | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/packages/merchant-backoffice-ui/src/hooks/backend.ts
b/packages/merchant-backoffice-ui/src/hooks/backend.ts
index 90fd320a9..145a366f6 100644
--- a/packages/merchant-backoffice-ui/src/hooks/backend.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/backend.ts
@@ -239,16 +239,16 @@ export function useBackendInstanceRequest():
useBackendInstanceRequestType {
searchDate?: Date,
delta?: number,
): Promise<HttpResponseOk<T>> {
- const date_ms =
+ const date_s =
delta && delta < 0 && searchDate
- ? searchDate.getTime() + 1
- : searchDate?.getTime();
+ ? (searchDate.getTime() / 1000) + 1
+ : searchDate !== undefined ? (searchDate.getTime() / 1000) :
undefined;
const params: any = {};
if (paid !== undefined) params.paid = paid;
if (delta !== undefined) params.delta = delta;
if (refunded !== undefined) params.refunded = refunded;
if (wired !== undefined) params.wired = wired;
- if (date_ms !== undefined) params.date_ms = date_ms;
+ if (date_s !== undefined) params.date_s = date_s;
return requestHandler<T>(baseUrl, endpoint, { params, token });
},
[baseUrl, token],
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-wallet-core] branch master updated (44aeaba7b -> a204105b5), gnunet, 2023/08/07
- [taler-wallet-core] 03/08: ui settings view, gnunet, 2023/08/07
- [taler-wallet-core] 06/08: show simple order creation unless advance mode is selected, gnunet, 2023/08/07
- [taler-wallet-core] 07/08: show next expiration, gnunet, 2023/08/07
- [taler-wallet-core] 02/08: fix: support for empty strings, gnunet, 2023/08/07
- [taler-wallet-core] 01/08: accesstoken in memory and better login when switching between accounts, gnunet, 2023/08/07
- [taler-wallet-core] 04/08: fix date query parameter,
gnunet <=
- [taler-wallet-core] 05/08: use stringify taler util, gnunet, 2023/08/07
- [taler-wallet-core] 08/08: show advance mode in settings view, gnunet, 2023/08/07