backend-manager 3.2.35 → 3.2.37

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": "3.2.35",
3
+ "version": "3.2.37",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -1,6 +1,7 @@
1
1
  const { get, merge } = require('lodash');
2
2
  const powertools = require('node-powertools');
3
3
  const fetch = require('wonderful-fetch');
4
+ const moment = require('moment');
4
5
 
5
6
  const MAX_SIGNUPS = 3;
6
7
  const MAX_AGE = 30;
@@ -122,6 +123,12 @@ Module.prototype.main = function () {
122
123
  return resolve(self);
123
124
  }
124
125
 
126
+ // Increment signups
127
+ usage.increment('signups');
128
+
129
+ // Update signups
130
+ await usage.update();
131
+
125
132
  // Increment user count
126
133
  await self.incrementUserCount().catch(e => e);
127
134