Project

General

Profile

« Previous | Next » 

Revision 51751

corrected some bugs

View differences:

broker.service.ts
62 62
      .catch(this.handleError);
63 63
  }
64 64

  
65
  getSimpleSubscriptionsOfUser(userEmail: string): Observable<Map<string,SimpleSubscriptionDesc>> {
65
  getSimpleSubscriptionsOfUser(userEmail: string): Observable<Map<string,SimpleSubscriptionDesc[]>> {
66 66
    let url = `${this.apiUrl}getSimpleSubscriptionsOfUser/${userEmail}/`;
67 67
    console.log(`knocking on: ${url}`);
68 68
    httpOptions.withCredentials = true;
69
    return this.http.get(url, this.http)
70
      .map( res => <Map<string,SimpleSubscriptionDesc>>res.json())
69
    return this.http.get(url, httpOptions)
70
      .map( res => <Map<string,SimpleSubscriptionDesc[]>>res.json())
71 71
      .catch(this.handleError);
72 72
  }
73 73

  

Also available in: Unified diff