Fix: Rebase url error, double slash before date

This commit is contained in:
Amritanshu 2018-09-05 00:09:37 +05:30
parent eb22eace69
commit 1984c1fc90

View File

@ -54,7 +54,7 @@ export class SettingsService {
} }
rebaseDatabase(date: string): Observable<boolean> { rebaseDatabase(date: string): Observable<boolean> {
const url = '/api/Rebase/'; const url = '/api/Rebase';
return <Observable<any>>this.http.post<any>(`${url}/${date}`, {}) return <Observable<any>>this.http.post<any>(`${url}/${date}`, {})
.pipe( .pipe(
catchError(this.log.handleError(serviceName, `rebaseDatabase`)) catchError(this.log.handleError(serviceName, `rebaseDatabase`))