@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.
@@ -48,7 +48,7 @@ import {
48
48
  updateDeviceAuth,
49
49
  updateDevicesAuth,
50
50
  updateDynamicGroup
51
- } from "../chunk-APHL4JZP.js";
51
+ } from "../chunk-74OJIKXF.js";
52
52
  import "../chunk-MDC7Y3EX.js";
53
53
  import "../chunk-NI4SZOCF.js";
54
54
  import "../chunk-JAROCU6M.js";
@@ -3691,8 +3691,9 @@ var getDeviceConnect = (0, import_toolkit19.createAsyncThunk)(
3691
3691
  )
3692
3692
  );
3693
3693
  var getSessionDetails = (0, import_toolkit19.createAsyncThunk)(`${sliceName3}/getSessionDetails`, ({ sessionId, deviceId, userId, startDate, endDate }) => {
3694
- const createdAfter = startDate ? `&created_after=${Math.round(Date.parse(startDate) / 1e3)}` : "";
3695
- const createdBefore = endDate ? `&created_before=${Math.round(Date.parse(endDate) / 1e3)}` : "";
3694
+ const { start: startUnix, end: endUnix } = (0, import_helpers9.dateRangeToUnix)(startDate, endDate);
3695
+ const createdAfter = startDate ? `&created_after=${startUnix}` : "";
3696
+ const createdBefore = endDate ? `&created_before=${endUnix}` : "";
3696
3697
  const objectSearch = `&object_id=${deviceId}`;
3697
3698
  return general_api_default.get(`${auditLogsApiUrl}/logs?per_page=500${createdAfter}${createdBefore}&actor_id=${userId}${objectSearch}`).then(
3698
3699
  ({ data: auditLogEntries }) => {