Skip to content

Commit da563b3

Browse files
committed
[TM-2411] Fix index paths.
1 parent 377896a commit da563b3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

apps/entity-service/src/applications/applications.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class ApplicationsController {
103103
).document;
104104
},
105105
buildJsonApi(ApplicationDto, { forceDataArray: true }).addIndex({
106-
requestPath: `/applications/v3${getStableRequestQuery(query)}`,
106+
requestPath: `/applications/v3/applications${getStableRequestQuery(query)}`,
107107
total: await builder.paginationTotal(),
108108
pageNumber: query.page?.number ?? 1
109109
})

apps/entity-service/src/forms/forms.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export class FormsService {
110110
}
111111

112112
return document.addIndex({
113-
requestPath: `/forms/v3${getStableRequestQuery(query)}`,
113+
requestPath: `/forms/v3/forms${getStableRequestQuery(query)}`,
114114
total: paginationTotal,
115115
pageNumber: query.page?.number ?? 1
116116
});

apps/entity-service/src/fundingProgrammes/funding-programmes.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class FundingProgrammesController {
8686
const locale = query.translated === false ? undefined : await User.findLocale(authenticatedUserId());
8787
await this.policyService.authorize("read", fundingProgrammes);
8888
const document = buildJsonApi(FundingProgrammeDto, { forceDataArray: true }).addIndex({
89-
requestPath: `/fundingProgrammes/v3${getStableRequestQuery(query)}`
89+
requestPath: `/fundingProgrammes/v3/fundingProgrammes${getStableRequestQuery(query)}`
9090
});
9191
return await this.formDataService.addFundingProgrammeDtos(document, fundingProgrammes, locale);
9292
}

apps/user-service/src/organisations/organisations.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class OrganisationsController {
4343
return orgs.reduce(
4444
(document, org) => document.addData(org.uuid, new OrganisationDto(org)).document,
4545
buildJsonApi(OrganisationDto, { forceDataArray: true }).addIndex({
46-
requestPath: `/organisations/v3${getStableRequestQuery(query)}`,
46+
requestPath: `/organisations/v3/organisation${getStableRequestQuery(query)}`,
4747
total: await builder.paginationTotal(),
4848
pageNumber: query.page?.number ?? 1
4949
})

0 commit comments

Comments
 (0)