@7365admin1/core 2.28.1 → 2.29.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 2.29.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 81e1fbe: get latest changes
8
+
3
9
  ## 2.28.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -34040,7 +34040,7 @@ function useOccurrenceBookRepo() {
34040
34040
  date = "",
34041
34041
  status = ""
34042
34042
  }, session) {
34043
- page = page > 0 ? page - 1 : 0;
34043
+ page = page > 0 && !date ? page - 1 : 0;
34044
34044
  const _site = (0, import_node_server_utils156.toObjectId)(site);
34045
34045
  const query = {
34046
34046
  site: _site,
@@ -37454,12 +37454,15 @@ function useIncidentReportRepo() {
37454
37454
  }
37455
37455
  if (dateFrom) {
37456
37456
  const [year, month, day] = dateFrom.split("-").map(Number);
37457
- const start = new Date(year, month - 1, day, 0, 0, 0, 0).toISOString();
37458
- const end = new Date(year, month - 1, day, 23, 59, 59, 999).toISOString();
37457
+ const offset = 8;
37458
+ const start = new Date(Date.UTC(year, month - 1, day, -offset, 0, 0, 0));
37459
+ const end = new Date(
37460
+ Date.UTC(year, month - 1, day, 23 - offset, 59, 59, 999)
37461
+ );
37459
37462
  dateExpr = {
37460
37463
  "incidentInformation.incidentTypeAndTime.dateOfIncident": {
37461
- $gte: start,
37462
- $lte: end
37464
+ $gte: start.toISOString(),
37465
+ $lte: end.toISOString()
37463
37466
  }
37464
37467
  };
37465
37468
  }