|
|
|
@ -1969,7 +1969,7 @@ exports.addMediaToInsensor = async (req, reply) => {
|
|
|
|
|
// const { hardwareId, customerId, type } = req.params;
|
|
|
|
|
// const { video, material, workStatus, product_status } = req.body;
|
|
|
|
|
const { customerId } = req.params;
|
|
|
|
|
const { hardwareId, type, video, material, workStatus, product_status } = req.body;
|
|
|
|
|
const { hardwareId, type, video, material, workStatus, product_status,description } = req.body;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!hardwareId || !customerId || !type) {
|
|
|
|
@ -2001,6 +2001,9 @@ exports.addMediaToInsensor = async (req, reply) => {
|
|
|
|
|
if (product_status && ['pending', 'complete'].includes(product_status)) {
|
|
|
|
|
insensor.product_status = product_status;
|
|
|
|
|
}
|
|
|
|
|
if (description) {
|
|
|
|
|
insensor.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await insensor.save();
|
|
|
|
|
|
|
|
|
|