forked from hazza/dspace-angular
fix circular dependency issues relating to request models
This commit is contained in:
@@ -16,11 +16,12 @@ import {
|
||||
RequestSuccessAction,
|
||||
ResetResponseTimestampsAction
|
||||
} from './request.actions';
|
||||
import { RestRequest } from './request.models';
|
||||
import { RequestEntry } from './request.reducer';
|
||||
import { RequestService } from './request.service';
|
||||
import { ParsedResponse } from '../cache/response.models';
|
||||
import { RequestError } from './request-error.model';
|
||||
import { RestRequest } from './rest-request.model';
|
||||
import { RestRequestWithResponseParser } from './rest-request-with-response-parser.model';
|
||||
import { RequestEntry } from './request-entry.model';
|
||||
|
||||
@Injectable()
|
||||
export class RequestEffects {
|
||||
@@ -34,7 +35,7 @@ export class RequestEffects {
|
||||
}),
|
||||
filter((entry: RequestEntry) => hasValue(entry)),
|
||||
map((entry: RequestEntry) => entry.request),
|
||||
mergeMap((request: RestRequest) => {
|
||||
mergeMap((request: RestRequestWithResponseParser) => {
|
||||
let body = request.body;
|
||||
if (isNotEmpty(request.body) && !request.isMultipart) {
|
||||
const serializer = new DSpaceSerializer(getClassForType(request.body.type));
|
||||
|
Reference in New Issue
Block a user