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

This commit is contained in:
Dave
2025-10-14 14:55:10 -04:00
parent 6671db1724
commit e514cf8d6a
4 changed files with 13 additions and 10 deletions

View File

@@ -3,7 +3,7 @@ const FortellisLogger = require("../fortellis/fortellis-logger");
const RRLogger = require("../rr/rr-logger");
const { FortellisJobExport, FortellisSelectedCustomer } = require("../fortellis/fortellis");
const CdkCalculateAllocations = require("../cdk/cdk-calculate-allocations").default;
const { exportJobToRome } = require("../rr/rr-job-export");
const { exportJobToRR } = require("../rr/rr-job-export");
const lookupApi = require("../rr/rr-lookup");
const { getRRConfigForBodyshop } = require("../rr/rr-config");
@@ -358,7 +358,7 @@ const redisSocketEvents = ({
return;
}
const result = await exportJobToRome(socket, job, cfg, options);
const result = await exportJobToRR(socket, job, cfg, options);
// Broadcast to bodyshop room for UI to pick up
const room = getBodyshopRoom(socket.bodyshopId);
io.to(room).emit("rr-export-job:result", { jobid: job.id, result });