Skip to content

Commit dabc0e9

Browse files
YanaDePauwAtmire-Kristof
authored andcommitted
[Ticket 2124] Slow response times
1 parent 679702b commit dabc0e9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/core/submission/submission-rest.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('SubmissionRestService test suite', () => {
2626
const resourceEndpoint = 'workspaceitems';
2727
const resourceScope = '260';
2828
const body = { test: new FormFieldMetadataValueObject('test') };
29-
const resourceHref = resourceEndpointURL + '/' + resourceEndpoint + '/' + resourceScope + '?projection=full';
29+
const resourceHref = resourceEndpointURL + '/' + resourceEndpoint + '/' + resourceScope + '?embed=sections,collection';
3030
const timestampResponse = 1545994811992;
3131

3232
function initTestService() {

src/app/core/submission/submission-rest.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class SubmissionRestService {
7070
*/
7171
protected getEndpointByIDHref(endpoint, resourceID, collectionId?: string): string {
7272
let url = isNotEmpty(resourceID) ? `${endpoint}/${resourceID}` : `${endpoint}`;
73-
url = new URLCombiner(url, '?projection=full').toString();
73+
url = new URLCombiner(url, '?embed=sections,collection').toString();
7474
if (collectionId) {
7575
url = new URLCombiner(url, `&owningCollection=${collectionId}`).toString();
7676
}

0 commit comments

Comments
 (0)