(@Body() body)
| 51 | }, |
| 52 | }) |
| 53 | async store(@Body() body) { |
| 54 | try { |
| 55 | await this.userServices.store(body); |
| 56 | return new ServerResponse(201, 'Successfully created user'); |
| 57 | } catch (err: any) { |
| 58 | this.logger.error(`Failed to store user: ${err}`); |
| 59 | throw new HttpException(err?.code ?? err?.name ?? `${err}`, 400); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | @Put(':id') |
| 64 | @UseGuards(AdminGuard) |
nothing calls this directly
no outgoing calls
no test coverage detected