Skip to content
Snippets Groups Projects
Commit e8e16edf authored by Baptiste Toulemonde's avatar Baptiste Toulemonde
Browse files

fix for dev mode

parent 078f9cfa
No related branches found
No related tags found
1 merge request!43Feature/semantic enrichment
...@@ -65,7 +65,9 @@ export class PublishRepositoryService { ...@@ -65,7 +65,9 @@ export class PublishRepositoryService {
Authorization: 'Bearer ' + this.fds2Token Authorization: 'Bearer ' + this.fds2Token
}) })
}; };
if (!environment.staging && !environment.production) {
url = url.replace(':8080', '');
}
return this.http.put(`${url}/meta/state`, { current: 'PUBLISHED' }, httpOptions).toPromise(); return this.http.put(`${url}/meta/state`, { current: 'PUBLISHED' }, httpOptions).toPromise();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment