Conditions | 2 |
Total Lines | 11 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { |
||
25 | |||
26 | @Get() |
||
27 | @Roles(UserRole.COOPERATOR, UserRole.EMPLOYEE) |
||
28 | @ApiOperation({ summary: 'Get users savings records balance' }) |
||
29 | public async index() { |
||
30 | try { |
||
31 | return await this.queryBus.execute( |
||
32 | new GetUsersSavingsRecordsBalanceQuery() |
||
33 | ); |
||
34 | } catch (e) { |
||
35 | throw new BadRequestException(e.message); |
||
36 | } |
||
39 |