IO-233 CDK Get Makes & Taxes calculation.

This commit is contained in:
Patrick Fic
2021-08-13 15:08:44 -07:00
parent b68de683b0
commit 7d9fd06b6d
14 changed files with 240 additions and 109 deletions

View File

@@ -64,8 +64,16 @@ io.on("connection", (socket) => {
});
socket.on("cdk-get-makes", async (cdk_dealerid, callback) => {
const makes = await CdkGetMakes(socket, cdk_dealerid);
callback(makes);
try {
const makes = await CdkGetMakes(socket, cdk_dealerid);
callback(makes);
} catch (error) {
createLogEvent(
socket,
"ERROR",
`Error in cdk-get-makes WS call. ${JSON.stringify(error, null, 2)}`
);
}
});
socket.on("cdk-calculate-allocations", async (jobid, callback) => {