@northern.tech/store 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ import {
12
12
  saveDeltaDeploymentsConfig,
13
13
  setDeploymentsState,
14
14
  updateDeploymentControlMap
15
- } from "../chunk-APHL4JZP.js";
15
+ } from "../chunk-74OJIKXF.js";
16
16
  import "../chunk-MDC7Y3EX.js";
17
17
  import "../chunk-NI4SZOCF.js";
18
18
  import "../chunk-JAROCU6M.js";
@@ -4435,8 +4435,9 @@ var getDeviceConnect = (0, import_toolkit21.createAsyncThunk)(
4435
4435
  )
4436
4436
  );
4437
4437
  var getSessionDetails = (0, import_toolkit21.createAsyncThunk)(`${sliceName3}/getSessionDetails`, ({ sessionId, deviceId, userId, startDate, endDate }) => {
4438
- const createdAfter = startDate ? `&created_after=${Math.round(Date.parse(startDate) / 1e3)}` : "";
4439
- const createdBefore = endDate ? `&created_before=${Math.round(Date.parse(endDate) / 1e3)}` : "";
4438
+ const { start: startUnix, end: endUnix } = (0, import_helpers10.dateRangeToUnix)(startDate, endDate);
4439
+ const createdAfter = startDate ? `&created_after=${startUnix}` : "";
4440
+ const createdBefore = endDate ? `&created_before=${endUnix}` : "";
4440
4441
  const objectSearch = `&object_id=${deviceId}`;
4441
4442
  return general_api_default.get(`${auditLogsApiUrl}/logs?per_page=500${createdAfter}${createdBefore}&actor_id=${userId}${objectSearch}`).then(
4442
4443
  ({ data: auditLogEntries }) => {