diff --git a/server/web-sockets/redisSocketEvents.js b/server/web-sockets/redisSocketEvents.js index 30d25c56b..131fcbd8f 100644 --- a/server/web-sockets/redisSocketEvents.js +++ b/server/web-sockets/redisSocketEvents.js @@ -5,7 +5,6 @@ const { FortellisJobExport, FortellisSelectedCustomer } = require("../fortellis/ const CdkCalculateAllocations = require("../cdk/cdk-calculate-allocations").default; const { exportJobToRome } = require("../rr/rr-job-export"); const lookupApi = require("../rr/rr-lookup"); -const RRCalculateAllocations = require("../rr/rr-calculate-allocations"); function resolveRRConfigFrom(payload = {}) { // Back-compat: allow txEnvelope.config from old callers @@ -437,7 +436,7 @@ const redisSocketEvents = ({ // Calculate allocations (unchanged — CDK utility) socket.on("rr-calculate-allocations", async (jobid, callback) => { try { - const allocations = await RRCalculateAllocations(socket, jobid); + const allocations = await CdkCalculateAllocations(socket, jobid); callback(allocations); } catch (error) { RRLogger(socket, "error", `Error during RR calculate allocations: ${error.message}`);