implemented poi and mvi

This commit is contained in:
2024-04-01 18:37:15 +02:00
parent 3c063fddca
commit 423ff7e48b
35 changed files with 2111 additions and 497 deletions

View File

@ -3,7 +3,7 @@ import ownConn from "../dbConfig.js";
//get all production orders
export const getProductionOrders = async (result) => {
try {
let sql = `SELECT * FROM productionorders ORDER BY name ASC`;
let sql = `SELECT * FROM productionorders ORDER BY ticketNumber ASC`;
const results = await ownConn.execute(sql)
result(null, results);
}
@ -117,6 +117,7 @@ export const deleteProductionOrderById = async (id, result) => {
try {
let sql = `DELETE FROM productionorders WHERE ticketNumber = ?`;
const results = await ownConn.query(sql, [id])
results.insertId = results.insertId.toString();
result(null, results);
}
catch (err) {