refactor(bulk orders): improvments and changes that i wanted in but missed
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { abbottOrders } from "./customMappings/abbottTruckList.js";
|
||||
import { standardOrders } from "./customMappings/standardOrders.js";
|
||||
import { abbottOrders } from "./mappings/abbottTruckList.js";
|
||||
import { standardOrders } from "./mappings/standardOrders.js";
|
||||
|
||||
export const ordersIn = async (data: any, user: any) => {
|
||||
/**
|
||||
@@ -15,7 +15,7 @@ export const ordersIn = async (data: any, user: any) => {
|
||||
// run the standard orders in
|
||||
const standard = await standardOrders(data["postOrders"], user);
|
||||
success = standard.success ?? false;
|
||||
message = standard.message ?? "Error posting Abbott Orders";
|
||||
message = standard.message ?? "Error posting Standard Orders";
|
||||
orderData = standard.data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user