mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 19:13:08 +00:00
finished update
This commit is contained in:
@@ -23,13 +23,10 @@ export class AuthRequestService {
|
||||
}
|
||||
|
||||
protected fetchRequest(request: RestRequest): Observable<any> {
|
||||
return this.requestService.getByHref(request.href).pipe(
|
||||
tap((t) => console.log(t)),
|
||||
|
||||
return this.requestService.getByUUID(request.uuid).pipe(
|
||||
getResponseFromEntry(),
|
||||
// TODO to review when https://github.com/DSpace/dspace-angular/issues/217 will be fixed
|
||||
// tap(() => this.responseCache.remove(request.href)),
|
||||
tap((t) => console.log(t)),
|
||||
mergeMap((response) => {
|
||||
if (response.isSuccessful && isNotEmpty(response)) {
|
||||
return observableOf((response as AuthStatusResponse).response);
|
||||
|
@@ -53,14 +53,6 @@ function configureRequest(state: RequestState, action: RequestConfigureAction):
|
||||
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 {
|
||||
|
Reference in New Issue
Block a user