[Resolved] Update provide user info

This commit is contained in:
Qolzam
2018-03-04 19:13:57 +07:00
parent 24193b83b5
commit f98263d33a

View File

@@ -32,7 +32,7 @@ export class UserService implements IUserService {
reject(reject(new SocialError(`firestore/providerdata`, 'firestore/getUserProfile : Provider data or email of provider data is empty!')))
}
const {avatar,fullName, email} = providerData
const userProfile = new Profile(avatar,fullName && fullName !== '' ? fullName : email ,'','',moment().unix(),email)
const userProfile = new Profile(avatar,fullName && fullName !== '' ? fullName : email ,'','',moment().unix(),email, -1, '', '', '')
resolve(userProfile)
this.updateUserProfile(userId,userProfile)
})