[plugins-functionality | DONE | CHANGED ] allow add/remove main zenodo community - complete previous commit - add service change

This commit is contained in:
argirok 2024-05-16 15:00:44 +03:00
parent 37f8c73720
commit a4a592e248
1 changed files with 11 additions and 0 deletions

View File

@ -30,6 +30,17 @@ export class ManageZenodoCommunitiesService {
}
updateMasterZCommunity(properties:EnvProperties, pid: string,zenodoid: string) {
const options = {
headers: new HttpHeaders({
'Content-Type': 'application/json',
})
};
let url = properties.communityAPI+pid;
return this.http.post<any>(url, {mainZenodoCommunity:zenodoid}, options);
//.map(res => <any> res.json())
}
}