This commit is contained in:
2026-02-22 10:57:59 +03:30
parent baf5262650
commit 396c50cc52
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -12,7 +12,6 @@ import { IAttachment } from '../interface/order.interface';
export class CreateOrderAsAdminDto {
@ApiPropertyOptional({ example: '' })
@IsString()
@IsNotEmpty()
userId?: string;
@ApiPropertyOptional({ example: '' })
@@ -44,6 +43,10 @@ export class CreateOrderAsAdminDto {
@IsArray()
attachments: IAttachment[];
@ApiPropertyOptional()
@IsOptional()
@IsString()
description?: string;
}
@@ -59,6 +59,7 @@ export class OrderService {
user = invoiceItem.invoice.user
}
if (!invoiceItem) {
if (!dto.userId) {