refactor(sql): improved the return function to show data [] when not connected, prevents crashes
This commit is contained in:
@@ -14,7 +14,9 @@ export const isMainMatStaged = async (lot: any) => {
|
||||
const updateQuery = mmQuery.replaceAll("[lotNumber]", lot.lot);
|
||||
|
||||
try {
|
||||
const res = await query(updateQuery, "Main Material Check");
|
||||
const r: any = await query(updateQuery, "Main Material Check");
|
||||
|
||||
const res: any = r.data;
|
||||
|
||||
createLog(
|
||||
"info",
|
||||
|
||||
Reference in New Issue
Block a user