adjusted login service to changed API

master
Max 5 years ago
parent 8a068b3c12
commit c88fbddb67

@ -34,7 +34,7 @@ export class FeedComponent implements OnInit {
this.data.currentUserInfo.subscribe(user => {
this.user = user;
this.loggedIn = user.loggedIn;
if(this.loggedIn){
if (this.loggedIn) {
this.userId = user.userID;
this.feedService.getAllPostsRawByUserId(this.userId).subscribe(response => {
this.feedNew = this.feedService.renderAllPosts(response.json());

@ -53,7 +53,7 @@ export class LoginService {
public buildJson(login: Login): any {
const body = {
query: `mutation($email: String, $pwHash: String) {
query: `mutation($email: String!, $pwHash: String!) {
login(email: $email, passwordHash: $pwHash) {
id,
name,

Loading…
Cancel
Save