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

Commit

Permalink
fix(user): can't subscribe to ourselves!
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir authored and joshuawilson committed Mar 11, 2017
1 parent 5087e6c commit 7450b32
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/app/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ export class UserService {
.subscribe(message => {
this.resetUser();
});
// TODO Remove these when we remove deprecated methods
this.loggedInUser.subscribe(val => this.userData = val);
this.getAllUsers().subscribe(val => this.allUserData = val);

}

/**
Expand All @@ -62,7 +60,9 @@ export class UserService {
let userData = cloneDeep(response.json().data as User);
userData.attributes.primaryEmail = userData.attributes.email;
return userData;
});
})
// TODO remove this
.do(val => this.userData = val);
}

/**
Expand Down Expand Up @@ -132,7 +132,9 @@ export class UserService {
.map(response => {
this.allUserData = response.json().data as User[];
return this.allUserData;
});
})
// TODO remove this
.do(val => this.allUserData = val);
}

/**
Expand Down

0 comments on commit 7450b32

Please sign in to comment.