From 2938b93d9a2337abd5c93626aef007856fd8aa9f Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Sat, 7 Mar 2026 10:48:01 +0330 Subject: [PATCH] barname --- src/modules/barname/barname.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/barname/barname.service.ts b/src/modules/barname/barname.service.ts index d394a4b..6cdb5e3 100644 --- a/src/modules/barname/barname.service.ts +++ b/src/modules/barname/barname.service.ts @@ -23,13 +23,13 @@ export class BarnameService { ) { } async createBarname(dto: CreateBarnameDto, business: Business, userId: string) { - const { description, driverName, driverPhone, carType, exitAt, origin, plaque, weight,attachments } = dto; + const { description, driverName, driverPhone, carType, exitAt, origin, plaque, weight, attachments } = dto; const company = await this.em.findOne(Company, { business, user: { id: userId }, deletedAt: null }); if (!company) throw new BadRequestException(CompanyMessage.COMPANY_NOT_FOUND); const bill = this.em.create(Barname, - { carType, exitAt, origin, plaque, weight, business, description, driverName, driverPhone, company,attachments }); + { carType, exitAt, origin, plaque, weight, business, description, driverName, driverPhone, company, attachments }); await this.em.persistAndFlush(bill);