|
1 | 1 | import { Get, Post, Body, Param, Delete, Put, Query, UseGuards, UseInterceptors } from "@nestjs/common"; |
2 | 2 | import { FormsService } from "./forms.service"; |
3 | | -import { AcceptAccessDto, Form, Format, QueryWithPagingAndLangAndIdIn, GetDto, RevokeAccessDto, TransformDto } |
| 3 | +import { AcceptAccessDto, Form, Format, GetDto, RevokeAccessDto, TransformDto } |
4 | 4 | from "./dto/form.dto"; |
5 | 5 | import { ApiTags } from "@nestjs/swagger"; |
6 | 6 | import { IctAdminGuard } from "src/persons/ict-admin/ict-admin.guard"; |
7 | | -import { Lang, QueryWithMaybePersonTokenDto, QueryWithPersonTokenDto } from "src/common.dto"; |
| 7 | +import { Lang, QueryWithLangDto, QueryWithMaybePersonTokenDto, QueryWithPersonTokenDto } from "src/common.dto"; |
8 | 8 | import { FormPermissionsService } from "./form-permissions/form-permissions.service"; |
9 | 9 | import { SwaggerRemoteRef } from "src/swagger/swagger-remote.decorator"; |
10 | 10 | import { LajiApiController } from "src/decorators/laji-api-controller.decorator"; |
11 | 11 | import { Person } from "src/persons/person.dto"; |
12 | 12 | import { PersonToken } from "src/decorators/person-token.decorator"; |
13 | | -import { Paginator } from "src/interceptors/paginator.interceptor"; |
| 13 | +import { ResultsArray } from "src/interceptors/results-array.interceptor"; |
14 | 14 |
|
15 | 15 | @ApiTags("Form") |
16 | 16 | @LajiApiController("forms") |
@@ -72,8 +72,8 @@ export class FormsController { |
72 | 72 | /** Get a page of forms */ |
73 | 73 | @Get() |
74 | 74 | @SwaggerRemoteRef({ source: "store", ref: "form" }) |
75 | | - @UseInterceptors(Paginator) |
76 | | - getPage(@Query() { lang }: QueryWithPagingAndLangAndIdIn) { |
| 75 | + @UseInterceptors(ResultsArray) |
| 76 | + getPage(@Query() { lang }: QueryWithLangDto) { |
77 | 77 | return this.formsService.getListing(lang); |
78 | 78 | } |
79 | 79 |
|
|
0 commit comments