@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.
package/dist/thunks.js CHANGED
@@ -140,7 +140,7 @@ import {
140
140
  verify2FA,
141
141
  verifyEmailComplete,
142
142
  verifyEmailStart
143
- } from "./chunk-APHL4JZP.js";
143
+ } from "./chunk-74OJIKXF.js";
144
144
  import {
145
145
  cancelFileUpload,
146
146
  createArtifact,
@@ -3732,8 +3732,9 @@ var getDeviceConnect = (0, import_toolkit19.createAsyncThunk)(
3732
3732
  )
3733
3733
  );
3734
3734
  var getSessionDetails = (0, import_toolkit19.createAsyncThunk)(`${sliceName3}/getSessionDetails`, ({ sessionId, deviceId, userId, startDate, endDate }) => {
3735
- const createdAfter = startDate ? `&created_after=${Math.round(Date.parse(startDate) / 1e3)}` : "";
3736
- const createdBefore = endDate ? `&created_before=${Math.round(Date.parse(endDate) / 1e3)}` : "";
3735
+ const { start: startUnix, end: endUnix } = (0, import_helpers9.dateRangeToUnix)(startDate, endDate);
3736
+ const createdAfter = startDate ? `&created_after=${startUnix}` : "";
3737
+ const createdBefore = endDate ? `&created_before=${endUnix}` : "";
3737
3738
  const objectSearch = `&object_id=${deviceId}`;
3738
3739
  return general_api_default.get(`${auditLogsApiUrl}/logs?per_page=500${createdAfter}${createdBefore}&actor_id=${userId}${objectSearch}`).then(
3739
3740
  ({ data: auditLogEntries }) => {