Skip to content

Commit

Permalink
fix cloud type on client
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Sep 30, 2022
1 parent f023be1 commit c47aff0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/meteor/client/lib/userData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const synchronizeUserData = async (uid: Meteor.User['_id']): Promise<RawU
// }

if (userData) {
const { email, resume, email2fa, emailCode, ...services } = rawServices || {};
const { email, resume, email2fa, emailCode, cloud, ...services } = rawServices || {};

updateUser({
...userData,
Expand Down Expand Up @@ -124,6 +124,10 @@ export const synchronizeUserData = async (uid: Meteor.User['_id']): Promise<RawU
})),
},
}),
...(cloud && {
...cloud,
expiresAt: new Date(cloud.expiresAt),
}),
},
}),
...(lastLogin && {
Expand Down

0 comments on commit c47aff0

Please sign in to comment.