From f777d26cc19c93f641f15f2d010695453725a1ad Mon Sep 17 00:00:00 2001 From: Dave Richer Date: Fri, 4 Apr 2025 14:15:30 -0400 Subject: [PATCH] feature/IO-2769-Job-Totals-testing: Allow for both american and canadian capture + tests --- server/job/job-totals-USA.js | 2 +- server/job/job-totals.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/job/job-totals-USA.js b/server/job/job-totals-USA.js index f125217f5..8cde6ebb3 100644 --- a/server/job/job-totals-USA.js +++ b/server/job/job-totals-USA.js @@ -38,7 +38,7 @@ exports.totalsSsu = async function (req, res) { const newTotals = await TotalsServerSide({ body: { job: inputForTotals, client: client } }, res, true); // Capture fixture data (input and output), using job.id for the filename. - if (process.env?.SAVE_TOTALS_DATA) { + if (process.env?.SAVE_TOTALS_DATA === "true") { captureFixture(inputForTotals, newTotals); } diff --git a/server/job/job-totals.js b/server/job/job-totals.js index 278fa9bfa..3aba47d1f 100644 --- a/server/job/job-totals.js +++ b/server/job/job-totals.js @@ -38,7 +38,7 @@ exports.totalsSsu = async function (req, res) { const newTotals = await TotalsServerSide({ body: { job: inputForTotals, client: client } }, res, true); // Capture fixture data (input and output), using job.id for the filename. - if (process.env?.SAVE_TOTALS_DATA) { + if (process.env?.SAVE_TOTALS_DATA === "true") { captureFixture(inputForTotals, newTotals); }