feature/IO-3357-Reynolds-and-Reynolds-DMS-API-Integration - Checkpoint
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user