order
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user