|
|
@ -158,11 +158,9 @@ export class AccountController { |
|
|
|
|
|
|
|
@Post('transfer-balance') |
|
|
|
@UseGuards(AuthGuard('jwt')) |
|
|
|
public async transferAccountBalance(@Body() { |
|
|
|
accountIdFrom, |
|
|
|
accountIdTo, |
|
|
|
balance |
|
|
|
}: TransferBalanceDto) { |
|
|
|
public async transferAccountBalance( |
|
|
|
@Body() { accountIdFrom, accountIdTo, balance }: TransferBalanceDto |
|
|
|
) { |
|
|
|
if ( |
|
|
|
!hasPermission(this.request.user.permissions, permissions.updateAccount) |
|
|
|
) { |
|
|
@ -192,7 +190,6 @@ export class AccountController { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Put(':id') |
|
|
|
@UseGuards(AuthGuard('jwt')) |
|
|
|
public async update(@Param('id') id: string, @Body() data: UpdateAccountDto) { |
|
|
|