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 CdkCalculateAllocations = require("../cdk/cdk-calculate-allocations").default;
|
||||||
const { exportJobToRome } = require("../rr/rr-job-export");
|
const { exportJobToRome } = require("../rr/rr-job-export");
|
||||||
const lookupApi = require("../rr/rr-lookup");
|
const lookupApi = require("../rr/rr-lookup");
|
||||||
const RRCalculateAllocations = require("../rr/rr-calculate-allocations");
|
|
||||||
|
|
||||||
function resolveRRConfigFrom(payload = {}) {
|
function resolveRRConfigFrom(payload = {}) {
|
||||||
// Back-compat: allow txEnvelope.config from old callers
|
// Back-compat: allow txEnvelope.config from old callers
|
||||||
@@ -437,7 +436,7 @@ const redisSocketEvents = ({
|
|||||||
// Calculate allocations (unchanged — CDK utility)
|
// Calculate allocations (unchanged — CDK utility)
|
||||||
socket.on("rr-calculate-allocations", async (jobid, callback) => {
|
socket.on("rr-calculate-allocations", async (jobid, callback) => {
|
||||||
try {
|
try {
|
||||||
const allocations = await RRCalculateAllocations(socket, jobid);
|
const allocations = await CdkCalculateAllocations(socket, jobid);
|
||||||
callback(allocations);
|
callback(allocations);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
RRLogger(socket, "error", `Error during RR calculate allocations: ${error.message}`);
|
RRLogger(socket, "error", `Error during RR calculate allocations: ${error.message}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user