backend-manager 2.4.9 → 2.4.10

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": "2.4.9",
3
+ "version": "2.4.10",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -21,10 +21,13 @@ Module.prototype.main = function () {
21
21
  if (!payload.user.roles.admin) {
22
22
  return reject(assistant.errorManager(`Admin required.`, {code: 401, sentry: false, send: false, log: false}).error)
23
23
  } else {
24
+ // https://googleapis.dev/nodejs/firestore/latest/v1.FirestoreAdminClient.html#exportDocuments
25
+ // https://firebase.google.com/docs/firestore/solutions/schedule-export#firebase-cli
26
+ // https://levelup.gitconnected.com/how-to-back-up-firestore-easily-and-automatically-eab6bf0d7e1f
24
27
  const client = new self.libraries.admin.firestore.v1.FirestoreAdminClient({
25
- credential: Manager.libraries.admin.credential.cert(
26
- require(Manager.project.serviceAccountPath)
27
- ),
28
+ // credential: Manager.libraries.admin.credential.cert(
29
+ // require(Manager.project.serviceAccountPath)
30
+ // ),
28
31
  });
29
32
  const projectId = Manager.project.projectId;
30
33
  const resourceZone = Manager.project.resourceZone;
@@ -52,7 +55,6 @@ Module.prototype.main = function () {
52
55
  return reject(assistant.errorManager(e, {code: 500, sentry: false, send: false, log: true}).error)
53
56
  });
54
57
 
55
-
56
58
  }
57
59
  });
58
60