Skip to content

Commit

Permalink
Update auth2Users.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
OronNadiv authored Sep 4, 2024
1 parent 037409f commit 738656d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions functions/src/auth2Users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const Auth2Users = (admin: Admin.app.App) => {
await got.get(gravatarUrl)
info('found gravatar.', {gravatarUrl})
hasGravatar = true
} catch (error) {
info('Error while fetching gravatar.', {gravatarUrl, error})
} catch (err) {
info('Error while fetching gravatar.', {gravatarUrl, error: err})
}

const createdAt = moment(creationTime)
Expand All @@ -56,9 +56,7 @@ const Auth2Users = (admin: Admin.app.App) => {
await userRef.set(data, { merge: true })
info(`Updated ${uid} ${createdAt} ${lastSignedInAt}`)
} catch (err) {
error('Error while syncing auth2user.',
{'uid': userRecord.uid,
'error':,err});
error('Error while syncing auth2user.', {'uid': userRecord.uid, 'error': err});
}
})
info(
Expand Down

0 comments on commit 738656d

Please sign in to comment.