Applied feedback and other fixes

This commit is contained in:
Lotte Hofstede
2018-04-13 15:18:35 +02:00
parent c9e7cdcf9a
commit e56ea2aff8
20 changed files with 107 additions and 83 deletions

View File

@@ -28,7 +28,7 @@ export class DSOResponseParsingService extends BaseResponseParsingService implem
parse(request: RestRequest, data: DSpaceRESTV2Response): RestResponse {
const processRequestDTO = this.process<NormalizedObject,ResourceType>(data.payload, request.href);
const selfLinks = this.flattenSingleKeyObject(processRequestDTO).map((no) => no.self);
return new DSOSuccessResponse(selfLinks, data.statusCode, this.processPageInfo(data.payload.page))
return new DSOSuccessResponse(selfLinks, data.statusCode, this.processPageInfo(data.payload))
}
}