Skip to content

Commit a02ce44

Browse files
author
Michael Levin
committed
[Feature] Run all reports for an agency before moving to the next agency
1 parent 8372204 commit a02ce44

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ async function runQueuePublish(options = {}) {
114114
const queueClient = await _initQueueClient(appConfig, appLogger);
115115
const queue = "analytics-reporter-job-queue";
116116

117-
for (const reportConfig of reportConfigs) {
118-
for (const agency of agencies) {
117+
for (const agency of agencies) {
118+
for (const reportConfig of reportConfigs) {
119119
process.env.AGENCY_NAME = agency.agencyName;
120120
const reportLogger = Logger.initialize(appConfig, reportConfig);
121121
try {

0 commit comments

Comments
 (0)