diff options
author | Sebastian <sebasjm@gmail.com> | 2023-11-09 10:01:36 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-11-09 10:01:36 -0300 |
commit | 1024665001060b8a33378ff45f12426a1b152f25 (patch) | |
tree | 5df2de0538d1c9c40f05f2e2c124e7395aff6526 /packages | |
parent | 2e73e89ff29857e070af715b7988c8ec415ba6fd (diff) |
floor when moving from ms to secs
Diffstat (limited to 'packages')
-rw-r--r-- | packages/merchant-backoffice-ui/src/hooks/backend.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/hooks/backend.ts b/packages/merchant-backoffice-ui/src/hooks/backend.ts index 054c074f1..8d99546a8 100644 --- a/packages/merchant-backoffice-ui/src/hooks/backend.ts +++ b/packages/merchant-backoffice-ui/src/hooks/backend.ts @@ -332,8 +332,8 @@ export function useBackendInstanceRequest(): useBackendInstanceRequestType { const [endpoint, paid, refunded, wired, searchDate, delta] = args const date_s = delta && delta < 0 && searchDate - ? (searchDate.getTime() / 1000) + 1 - : searchDate !== undefined ? (searchDate.getTime() / 1000) : undefined; + ? Math.floor(searchDate.getTime() / 1000) + 1 + : searchDate !== undefined ? Math.floor(searchDate.getTime() / 1000) : undefined; const params: any = {}; if (paid !== undefined) params.paid = paid; if (delta !== undefined) params.delta = delta; |