implemented poi and mvi
This commit is contained in:
@ -5,6 +5,7 @@ import {
|
||||
getProductionOrderTodosByAsset,
|
||||
updateProductionOrderTodoById,
|
||||
deleteProductionOrderTodosChecklistID,
|
||||
getProductionOrderTodosByTemplate,
|
||||
} from "../models/productionOrdersTodosModel.js";
|
||||
|
||||
//create new production order todo
|
||||
@ -41,6 +42,18 @@ export const showProductionOrderTodosByAsset = (req, res) => {
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
//get production order todos by template
|
||||
export const showProductionOrderTodosByTemplate = (req, res) => {
|
||||
getProductionOrderTodosByTemplate(req.params.id, (err, results) => {
|
||||
if (err) {
|
||||
res.send(err);
|
||||
} else {
|
||||
res.json(results);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
// Update production order todo
|
||||
export const updateProductionOrderTodo = (req, res) => {
|
||||
const data = req.body;
|
||||
|
||||
Reference in New Issue
Block a user