@7365admin1/core 3.32.0 → 3.32.2-staging.1

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.
@@ -0,0 +1,36 @@
1
+ name: Publish Staging
2
+ on:
3
+ push:
4
+ branches:
5
+ - staging
6
+
7
+ concurrency: ${{ github.workflow }}-${{ github.ref }}
8
+
9
+ jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: 20.x
18
+ cache: "yarn"
19
+ cache-dependency-path: yarn.lock
20
+
21
+ - run: yarn install --immutable
22
+
23
+ - run: yarn build
24
+
25
+ - name: Create .npmrc for publishing
26
+ run: |
27
+ echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' > ~/.npmrc
28
+
29
+ - name: Set staging prerelease version
30
+ run: |
31
+ BASE=$(node -p "const [x,y,z]=require('./package.json').version.split('-')[0].split('.'); [x,y,+z+1].join('.')")
32
+ npm version "$BASE-staging.${{ github.run_number }}" --no-git-tag-version
33
+ node -p "'Publishing ' + require('./package.json').version"
34
+
35
+ - name: Publish to npm with staging tag
36
+ run: npm publish --tag staging --registry https://registry.npmjs.org
package/dist/index.js CHANGED
@@ -58685,6 +58685,7 @@ function useNfcPatrolLogController() {
58685
58685
  const query = {
58686
58686
  site: req.query.site,
58687
58687
  date: req.query.date,
58688
+ type: req.query.type,
58688
58689
  route: {
58689
58690
  _id: req.query["route._id"],
58690
58691
  startTime: req.query["route.startTime"]
@@ -58699,13 +58700,14 @@ function useNfcPatrolLogController() {
58699
58700
  next(new import_node_server_utils200.BadRequestError(messages));
58700
58701
  return;
58701
58702
  }
58702
- const { page, limit, site, date, route } = value;
58703
+ const { page, limit, site, date, type, route } = value;
58703
58704
  try {
58704
58705
  const data = await _getAllBySite({
58705
58706
  page,
58706
58707
  limit,
58707
58708
  site,
58708
58709
  date,
58710
+ type,
58709
58711
  route
58710
58712
  });
58711
58713
  res.status(200).json(data);