Project

General

Profile

« Previous | Next » 

Revision 58486

[Trunk | Connect]: subscribe.component.ts: [Bug fix] In subscribe.service: method "getNumberOfCommunitySubscribers()" (/community/{pid}/subscribers/count) returns now {"value": number}
(Used to return String. This was a problem for cache. API changed to return object, where number of subscribers is mapped to "value").

View differences:

subscribe.component.ts
105 105
      if (this.communityId) {
106 106
        this._subscribeService.getNumberOfCommunitySubscribers(this.properties, this.communityId).subscribe(
107 107
          res => {
108
            this.subscribers = res;//(res && res.subscribers && res.subscribers.length) ? res.subscribers.length : 0;
108
            this.subscribers = (res && res.value) ? res.value : 0;//(res && res.subscribers && res.subscribers.length) ? res.subscribers.length : 0;
109 109
          },
110 110
          error => {
111 111
            this.handleError("Error getting community subscribers for community with id: " + this.communityId, error);

Also available in: Unified diff