refactor(sql): improved the return function to show data [] when not connected, prevents crashes
This commit is contained in:
@@ -15,7 +15,7 @@ export const getStockSiloData = async () => {
|
||||
message: "There was a n error getting the silo data.",
|
||||
};
|
||||
}
|
||||
|
||||
const stockData: any = data?.data;
|
||||
return {
|
||||
success: true,
|
||||
message: "Current silo data from alplastock.",
|
||||
|
||||
Reference in New Issue
Block a user