@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 +6 -0
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -34118,7 +34118,7 @@ function useOccurrenceBookRepo() {
|
|
|
34118
34118
|
date = "",
|
|
34119
34119
|
status = ""
|
|
34120
34120
|
}, session) {
|
|
34121
|
-
page = page > 0 ? page - 1 : 0;
|
|
34121
|
+
page = page > 0 && !date ? page - 1 : 0;
|
|
34122
34122
|
const _site = toObjectId12(site);
|
|
34123
34123
|
const query = {
|
|
34124
34124
|
site: _site,
|
|
@@ -37599,12 +37599,15 @@ function useIncidentReportRepo() {
|
|
|
37599
37599
|
}
|
|
37600
37600
|
if (dateFrom) {
|
|
37601
37601
|
const [year, month, day] = dateFrom.split("-").map(Number);
|
|
37602
|
-
const
|
|
37603
|
-
const
|
|
37602
|
+
const offset = 8;
|
|
37603
|
+
const start = new Date(Date.UTC(year, month - 1, day, -offset, 0, 0, 0));
|
|
37604
|
+
const end = new Date(
|
|
37605
|
+
Date.UTC(year, month - 1, day, 23 - offset, 59, 59, 999)
|
|
37606
|
+
);
|
|
37604
37607
|
dateExpr = {
|
|
37605
37608
|
"incidentInformation.incidentTypeAndTime.dateOfIncident": {
|
|
37606
|
-
$gte: start,
|
|
37607
|
-
$lte: end
|
|
37609
|
+
$gte: start.toISOString(),
|
|
37610
|
+
$lte: end.toISOString()
|
|
37608
37611
|
}
|
|
37609
37612
|
};
|
|
37610
37613
|
}
|