feature/IO-3357-Reynolds-and-Reynolds-DMS-API-Integration - Checkpoint

This commit is contained in:
Dave
2025-10-10 15:47:37 -04:00
parent de02b34a63
commit 64207ef76c

View File

@@ -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}`);