chore(workspace): eradicate all tsc errors and eslint warnings across frontend, admin, and backend
Deploy Canina / deploy (push) Failing after 29s

This commit is contained in:
parsa committed 2026-08-07 07:39:26 +03:30
1 parent 4659a7b1de
commit 9f11d8fb2d
98 files changed
+1272 -1009

No files matched your search

+7 -9
View File
@@ -9,15 +9,10 @@ import {
HttpStatus,
UseGuards,
} from '@nestjs/common';
import { Prisma } from '@prisma/client';
import { ProductsService } from './products.service';
import { GetProductsDto } from './dto/get-products.dto';
import {
ApiTags,
ApiOperation,
ApiResponse,
ApiOkResponse,
ApiNotFoundResponse,
} from '@nestjs/swagger';
import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger';
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
import { RolesGuard } from '../common/guards/roles.guard';
import { Roles } from '../common/decorators/roles.decorator';
@@ -65,7 +60,10 @@ export class ProductsController {
@ApiOperation({
summary: 'ویرایش پیکربندی دوز مصرف محصول (نیازمند دسترسی ادمین)',
})
updateDosageConfig(@Param('id') id: string, @Body() body: any) {
updateDosageConfig(
@Param('id') id: string,
@Body() body: Prisma.InputJsonValue,
) {
return this.productsService.updateDosageConfig(id, body);
}
@@ -74,7 +72,7 @@ export class ProductsController {
async findOne(@Param('id') id: string) {
const product = await this.productsService.findOne(id);
if (!product) {
throw new NotFoundException(`Product with ID ${id} not found`);
throw new NotFoundException('محصول یافت نشد');
}
return product;
}