backend-manager 5.0.54 → 5.0.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "5.0.54",
3
+ "version": "5.0.55",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -10,7 +10,7 @@
10
10
  "scripts": {
11
11
  "start": "node src/manager/index.js",
12
12
  "prepare": "node -e \"require('prepare-package')()\"",
13
- "prepare:watch": "nodemon -w ./src -e '*' --exec 'npm run prepare'"
13
+ "prepare:watch": "node -e \"require('prepare-package/watch')()\""
14
14
  },
15
15
  "engines": {
16
16
  "node": "22"
@@ -1,5 +1,6 @@
1
1
  const fetch = require('wonderful-fetch');
2
2
  const moment = require('moment');
3
+ const { FieldValue } = require('firebase-admin/firestore');
3
4
 
4
5
  const MAX_RETRIES = 3;
5
6
  const RETRY_DELAY_MS = 1000;
@@ -64,7 +65,7 @@ module.exports = async ({ Manager, assistant, user, context, libraries }) => {
64
65
 
65
66
  // Increment user count
66
67
  batch.update(admin.firestore().doc('meta/stats'), {
67
- 'users.total': admin.firestore.FieldValue.increment(1),
68
+ 'users.total': FieldValue.increment(1),
68
69
  });
69
70
 
70
71
  await batch.commit();