!ticketInfo.department? null:ticketInfo.department,
priority : !ticketInfo.priority? null: ticketInfo.priority,
};
let whereCondition= {};
Object.keys(sanitizedTicketInfo).forEach((key) => (sanitizedTicketInfo[key] === null) && delete sanitizedTicketInfo[key]);
Object.keys(sanitizedTicketInfo).forEach((key) => (whereCondition[key] = [ ...new Set(sanitizedTicketInfo[key]) ]));
Обсуждают сегодня