14 lines
418 B
TypeScript
14 lines
418 B
TypeScript
export const postLabelData = async (data: any) => {
|
|
// if we have sscc we will do everything here and ignore the rn even it its sent over
|
|
|
|
if (data.sscc) {
|
|
return {success: true, message: "sscc sent over", data: data};
|
|
}
|
|
|
|
if (data.runningNr) {
|
|
return {success: true, message: "runningNr sent over", data: data};
|
|
} else {
|
|
throw Error("Improper data was sent over");
|
|
}
|
|
};
|