Skip to content

Commit 49e1a45

Browse files
ajout champs ticket
1 parent 88a955a commit 49e1a45

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

service/src/tickets/ticket/ticket.controller.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ export class TicketController extends AbstractController {
2323
sequence: 1,
2424
envelope: 1,
2525
metadata: 1,
26+
lifestep: 1,
27+
type: 1,
28+
state: 1,
2629
}
2730

2831
public constructor(private readonly _service: TicketService) {
@@ -41,11 +44,7 @@ export class TicketController extends AbstractController {
4144

4245
@Get()
4346
@ApiPaginatedDecorator(PickProjectionHelper(TicketDto, TicketController.projection))
44-
public async search(
45-
@Res() res: Response,
46-
@SearchFilterSchema() searchFilterSchema: FilterSchema,
47-
@SearchFilterOptions() searchFilterOptions: FilterOptions,
48-
): Promise<Response> {
47+
public async search(@Res() res: Response, @SearchFilterSchema() searchFilterSchema: FilterSchema, @SearchFilterOptions() searchFilterOptions: FilterOptions): Promise<Response> {
4948
const [data, total] = await this._service.findAndCount(searchFilterSchema, TicketController.projection, searchFilterOptions)
5049
return res.status(HttpStatus.OK).json({
5150
statusCode: HttpStatus.OK,

0 commit comments

Comments
 (0)