fix: accept null

This commit is contained in:
Methapon2001 2024-12-03 11:31:59 +07:00
parent 42ff57e23e
commit 9fbc8ace15

View file

@ -303,14 +303,14 @@ export class RequestListController extends Controller {
payload: {
workStatus?: RequestWorkStatus;
attributes?: Record<string, any>;
customerDuty?: boolean;
customerDutyCost?: number;
companyDuty?: boolean;
companyDutyCost?: number;
individualDuty?: boolean;
individualDutyCost?: number;
responsibleUserLocal?: boolean;
responsibleUserId?: string;
customerDuty?: boolean | null;
customerDutyCost?: number | null;
companyDuty?: boolean | null;
companyDutyCost?: number | null;
individualDuty?: boolean | null;
individualDutyCost?: number | null;
responsibleUserLocal?: boolean | null;
responsibleUserId?: string | null;
},
@Query() successAll?: boolean,
) {