backend-manager 3.0.50 → 3.0.52

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.0.50",
3
+ "version": "3.0.52",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -34,16 +34,16 @@ Module.prototype.main = function () {
34
34
  // It could exist already if user signed up with email and then signed in with Google
35
35
  let existingUser;
36
36
  await powertools.poll(async () => {
37
- assistant.log(`Polling for existing user ${user.uid}...`);
38
37
  existingUser = await libraries.admin.firestore().doc(`users/${user.uid}`)
39
38
  .get()
40
39
  .then((doc) => doc.data())
41
40
  .catch(e => e);
42
41
 
43
- return existingUser && !(existingUser instanceof Error);
42
+ assistant.log(`Polling for existing user ${user.uid}...`, existingUser);
43
+
44
+ return existingUser && !(existingUser instanceof Error);
44
45
  }, {interval: 1000, timeout: 30000})
45
46
  .catch(e => {
46
- existingUser = e;
47
47
  assistant.error(`Timeout for existing user expired`, e);
48
48
  });
49
49