Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
feat(connectAccount): #62 Added return type to saveLinkUserSocailDeta…
Browse files Browse the repository at this point in the history
…il function
  • Loading branch information
Venkatesh committed May 17, 2019
1 parent 1e5075a commit 5ca2056
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class SocialCardsComponent implements OnInit {
});
}

saveLinkUserSocialDetails(userData: any, provider: string) {
saveLinkUserSocialDetails(userData: UserSocial, provider: string) {
const { userId, ...social } = userData;
const socialDetails = {
userId
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/services/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class UserService {
this.user = this.db.collection('user');
}

saveUser(user: User): Observable<User> {
saveUser(user: User): Observable<UserSocial> {
return from(this.user.doc(user.uid).set({ user }))
.pipe(
map(() => this.addRefID(user)),
Expand Down

0 comments on commit 5ca2056

Please sign in to comment.