fix: edit/create account

This commit is contained in:
Ahmed Bouhuolia
2025-11-07 22:20:06 +02:00
parent 8161439365
commit 80abd1f66f
5 changed files with 11 additions and 16 deletions

View File

@@ -7,6 +7,7 @@ import {
Get,
Query,
ParseIntPipe,
Put,
} from '@nestjs/common';
import { AccountsApplication } from './AccountsApplication.service';
import { CreateAccountDTO } from './CreateAccount.dto';
@@ -46,7 +47,7 @@ export class AccountsController {
return this.accountsApplication.createAccount(accountDTO);
}
@Post(':id')
@Put(':id')
@ApiOperation({ summary: 'Edit the given account.' })
@ApiResponse({
status: 200,