From de7e1cae2eabae5918e9a4405b5a15ab85c6e278 Mon Sep 17 00:00:00 2001 From: "sofia.baltzi" Date: Wed, 21 Nov 2018 14:15:03 +0000 Subject: [PATCH] Remove get subscriber's mail functionality git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@53913 d315682c-612b-4755-9ff5-7f18f6832af3 --- utils/subscribe/subscribe.service.ts | 15 --------------- 1 file changed, 15 deletions(-) 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()))