Skip to content

Commit ef3ebf0

Browse files
seanchoi0claude
andcommitted
fix(bulk-publish-worker): restore deps.runWorker injection in main()
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f4ff64b commit ef3ebf0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

io/studio/src/bulk-publish/bulk-publish-worker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ async function recoverStuckProject(error, input, deps, logger) {
140140

141141
async function main(params, deps = {}) {
142142
const logger = deps.logger || Core.Logger('bulk-publish-worker', { level: 'info' });
143+
const doRunWorker = deps.runWorker || runWorker;
143144
const input = {
144145
projectId: params.projectId,
145146
odinEndpoint: params.aemOdinEndpoint || params.odinEndpoint,
@@ -149,7 +150,7 @@ async function main(params, deps = {}) {
149150
includeVariations: params.includeVariations || false,
150151
};
151152
try {
152-
const result = await runWorker(input, deps);
153+
const result = await doRunWorker(input, deps);
153154
return { statusCode: 200, body: result };
154155
} catch (error) {
155156
logger.error(JSON.stringify({ event: 'worker-error', error: error.message || String(error) }));

0 commit comments

Comments
 (0)