@things-factory/auth-google 6.1.187 → 6.1.188

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": "@things-factory/auth-google",
3
- "version": "6.1.187",
3
+ "version": "6.1.188",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -34,5 +34,5 @@
34
34
  "passport": "^0.6.0",
35
35
  "passport-google-oauth20": "^2.0.0"
36
36
  },
37
- "gitHead": "f8593b6c04cf0ba8ff595f2c785c6d557cf2aa36"
37
+ "gitHead": "ae62986a327cfe158261052f0ae4f4586d4de55c"
38
38
  }
@@ -16,11 +16,11 @@ export async function syncAllUserInfo(authProvider: AuthProvider, context: Resol
16
16
  }
17
17
  }).then(res => res.json())
18
18
 
19
- latestData.value
20
- .filter(({ mail }) => mail)
21
- .forEach(async user => {
19
+ for (const user of latestData.value) {
20
+ if (user.mail) {
22
21
  await updateUserInfo(authProvider, user, context)
23
- })
22
+ }
23
+ }
24
24
  }
25
25
 
26
26
  export async function updateUserInfo(authProvider: AuthProvider, userInfo, context: ResolverContext) {