@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.
@@ -3580,8 +3580,9 @@ var getDeviceConnect = (0, import_toolkit18.createAsyncThunk)(
3580
3580
  )
3581
3581
  );
3582
3582
  var getSessionDetails = (0, import_toolkit18.createAsyncThunk)(`${sliceName3}/getSessionDetails`, ({ sessionId, deviceId, userId, startDate, endDate }) => {
3583
- const createdAfter = startDate ? `&created_after=${Math.round(Date.parse(startDate) / 1e3)}` : "";
3584
- const createdBefore = endDate ? `&created_before=${Math.round(Date.parse(endDate) / 1e3)}` : "";
3583
+ const { start: startUnix, end: endUnix } = (0, import_helpers8.dateRangeToUnix)(startDate, endDate);
3584
+ const createdAfter = startDate ? `&created_after=${startUnix}` : "";
3585
+ const createdBefore = endDate ? `&created_before=${endUnix}` : "";
3585
3586
  const objectSearch = `&object_id=${deviceId}`;
3586
3587
  return general_api_default.get(`${auditLogsApiUrl}/logs?per_page=500${createdAfter}${createdBefore}&actor_id=${userId}${objectSearch}`).then(
3587
3588
  ({ data: auditLogEntries }) => {