made server connections work

This commit is contained in:
www-data
2024-02-16 16:15:04 +00:00
parent e18c605c8c
commit fb59fb756e
7 changed files with 114 additions and 9 deletions

View File

@ -3,7 +3,7 @@ import ownConn from "../dbConfig.js";
//get all master checklists
export const getConfigItems = async (result) => {
try {
let sql = `SELECT * FROM changeDB ORDER BY assetName ASC`;
let sql = `SELECT * FROM changedb ORDER BY assetName ASC`;
const results = await ownConn.query(sql)
result(null, results);
}
@ -124,4 +124,4 @@ export const deleteConfigItemById = async (id, result) => {
console.log("SQL error : ", err);
result(err, null);
}
};
};