fix: add missing await

This commit is contained in:
yassinedorbozgithub
2024-12-07 11:59:00 +01:00
parent 62e59069dd
commit afa8364996
12 changed files with 17 additions and 17 deletions

View File

@@ -164,8 +164,8 @@ export class MenuController extends BaseController<
@CsrfCheck(true)
@Patch(':id')
async updateOne(@Body() body: MenuCreateDto, @Param('id') id: string) {
if (!id) return this.create(body);
return this.menuService.updateOne(id, body);
if (!id) return await this.create(body);
return await this.menuService.updateOne(id, body);
}
/**