fix(lots errors): fixes to prevent crashes when sql server not connected
This commit is contained in:
@@ -11,18 +11,10 @@ export const getLots = async () => {
|
||||
return {
|
||||
success: false,
|
||||
message: "There was an error getting the lots",
|
||||
data: lotError,
|
||||
data: [],
|
||||
};
|
||||
}
|
||||
|
||||
// if (!lotInfo.data.success) {
|
||||
// return {
|
||||
// success: false,
|
||||
// message: "There was an error getting the lots",
|
||||
// data: lotInfo.data.message,
|
||||
// };
|
||||
// }
|
||||
|
||||
return {
|
||||
success: true,
|
||||
message: "Current active lots that are technically released.",
|
||||
|
||||
Reference in New Issue
Block a user