| Conditions | 2 | 
| Total Lines | 16 | 
| Code Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | import { | 
            ||
| 28 | |||
| 29 | @Post()  | 
            ||
| 30 | @Roles(UserRole.COOPERATOR, UserRole.EMPLOYEE)  | 
            ||
| 31 |   @ApiOperation({ summary: 'Create new meal ticket removal' }) | 
            ||
| 32 | public async index(  | 
            ||
| 33 |     @Body() { date, comment }: MealTicketRemovalDTO, | 
            ||
| 34 | @LoggedUser() user: User  | 
            ||
| 35 |   ) { | 
            ||
| 36 |     try { | 
            ||
| 37 | const id = await this.commandBus.execute(  | 
            ||
| 38 | new CreateMealTicketRemovalCommand(date, comment, user)  | 
            ||
| 39 | );  | 
            ||
| 40 | |||
| 41 |       return { id }; | 
            ||
| 42 |     } catch (e) { | 
            ||
| 43 | throw new BadRequestException(e.message);  | 
            ||
| 44 | }  | 
            ||
| 47 |