order
This commit is contained in:
@@ -12,7 +12,6 @@ import { IAttachment } from '../interface/order.interface';
|
|||||||
export class CreateOrderAsAdminDto {
|
export class CreateOrderAsAdminDto {
|
||||||
@ApiPropertyOptional({ example: '' })
|
@ApiPropertyOptional({ example: '' })
|
||||||
@IsString()
|
@IsString()
|
||||||
@IsNotEmpty()
|
|
||||||
userId?: string;
|
userId?: string;
|
||||||
|
|
||||||
@ApiPropertyOptional({ example: '' })
|
@ApiPropertyOptional({ example: '' })
|
||||||
@@ -44,6 +43,10 @@ export class CreateOrderAsAdminDto {
|
|||||||
@IsArray()
|
@IsArray()
|
||||||
attachments: IAttachment[];
|
attachments: IAttachment[];
|
||||||
|
|
||||||
|
@ApiPropertyOptional()
|
||||||
|
@IsOptional()
|
||||||
|
@IsString()
|
||||||
|
description?: string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ export class OrderService {
|
|||||||
|
|
||||||
user = invoiceItem.invoice.user
|
user = invoiceItem.invoice.user
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!invoiceItem) {
|
if (!invoiceItem) {
|
||||||
|
|
||||||
if (!dto.userId) {
|
if (!dto.userId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user