finished update

This commit is contained in:
lotte
2018-10-19 16:18:44 +02:00
parent 5c12e2d995
commit 6de7104b7c
2 changed files with 1 additions and 12 deletions

View File

@@ -23,13 +23,10 @@ export class AuthRequestService {
} }
protected fetchRequest(request: RestRequest): Observable<any> { protected fetchRequest(request: RestRequest): Observable<any> {
return this.requestService.getByHref(request.href).pipe( return this.requestService.getByUUID(request.uuid).pipe(
tap((t) => console.log(t)),
getResponseFromEntry(), getResponseFromEntry(),
// TODO to review when https://github.com/DSpace/dspace-angular/issues/217 will be fixed // TODO to review when https://github.com/DSpace/dspace-angular/issues/217 will be fixed
// tap(() => this.responseCache.remove(request.href)), // tap(() => this.responseCache.remove(request.href)),
tap((t) => console.log(t)),
mergeMap((response) => { mergeMap((response) => {
if (response.isSuccessful && isNotEmpty(response)) { if (response.isSuccessful && isNotEmpty(response)) {
return observableOf((response as AuthStatusResponse).response); return observableOf((response as AuthStatusResponse).response);

View File

@@ -53,14 +53,6 @@ function configureRequest(state: RequestState, action: RequestConfigureAction):
completed: false, completed: false,
} }
}); });
console.log(Object.assign({}, state, {
[action.payload.uuid]: {
request: action.payload,
requestPending: true,
responsePending: false,
completed: false,
}
}););
} }
function executeRequest(state: RequestState, action: RequestExecuteAction): RequestState { function executeRequest(state: RequestState, action: RequestExecuteAction): RequestState {