diff --git a/utils/subscribe/subscribe.service.ts b/utils/subscribe/subscribe.service.ts index 772c6919..41c8f9ef 100644 --- a/utils/subscribe/subscribe.service.ts +++ b/utils/subscribe/subscribe.service.ts @@ -14,21 +14,6 @@ export class SubscribeService { .map(res => res.json()).do(res => {console.log(res)}).do(res => {console.log(res)}); } - getCommunitySubscribersEmail(pid:string, url:string){ - return this.http.get(url+"/community/"+pid+"/subscribers") - .map(res => res.json()).map(res => this.parseCommunitySubscribers(res)); - } - - parseCommunitySubscribers(data: any): String[] { - for (let i = 0; i < data.length; i++) { - let resData = data[i]; - var email = new Array(); - - email.push(resData[i].email); - } - return email; - } - isSubscribedToCommunity(pid:string, email:string, url:string){ return this.http.get(url+"/community/"+pid+"/subscribers") .map(res => ((res =="")?{}: res.json()))