[Connect]: resultLanding.service.ts: In method "getEnermapsDetails()", change url to /api/metadata (used to be /api/datasets).

This commit is contained in:
Konstantina Galouni 2021-09-20 16:32:27 +03:00
parent aae1a2a0d0
commit d80ac4904a
1 changed files with 2 additions and 1 deletions

View File

@ -487,7 +487,8 @@ export class ResultLandingService {
}
getEnermapsDetails(id: string) {
let url = properties.enermapsURL+"/api/datasets_full?shared_id=eq."+id;
// let url = properties.enermapsURL+"/api/datasets_full?shared_id=eq."+id;
let url = properties.enermapsURL+"/api/metadata?shared_id=eq."+id;
return this.http.get((properties.useLongCache)? (properties.cacheUrl+encodeURIComponent(url)): url)
// return this.http.get(url)
.pipe(map(res => this.parseEnermapsDetails(res)));