chore(workspace): eradicate all tsc errors and eslint warnings across frontend, admin, and backend
Deploy Canina / deploy (push) Failing after 29s
Deploy Canina / deploy (push) Failing after 29s
This commit is contained in:
1 parent
4659a7b1de
commit
9f11d8fb2d
98 files changed
+1272
-1009
No files matched your search
@@ -8,6 +8,7 @@ import {
|
||||
Param,
|
||||
UseGuards,
|
||||
} from '@nestjs/common';
|
||||
import { Prisma } from '@prisma/client';
|
||||
import { IngredientsService } from './ingredients.service';
|
||||
import { ApiTags, ApiOperation, ApiBearerAuth } from '@nestjs/swagger';
|
||||
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
|
||||
@@ -36,7 +37,7 @@ export class IngredientsController {
|
||||
@ApiBearerAuth()
|
||||
@Post()
|
||||
@ApiOperation({ summary: 'ایجاد ترکیب جدید (نیازمند ادمین)' })
|
||||
create(@Body() body: any) {
|
||||
create(@Body() body: Prisma.IngredientCreateInput) {
|
||||
return this.ingredientsService.create(body);
|
||||
}
|
||||
|
||||
@@ -45,7 +46,7 @@ export class IngredientsController {
|
||||
@ApiBearerAuth()
|
||||
@Patch(':id')
|
||||
@ApiOperation({ summary: 'ویرایش اطلاعات ترکیب (نیازمند ادمین)' })
|
||||
update(@Param('id') id: string, @Body() body: any) {
|
||||
update(@Param('id') id: string, @Body() body: Prisma.IngredientUpdateInput) {
|
||||
return this.ingredientsService.update(id, body);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user