Skip to content

Commit faa1ecc

Browse files
committed
fix: js
1 parent 964d788 commit faa1ecc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/analysisWorker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ class AnalysisWorker {
139139
});
140140
}
141141

142-
processResponse(project_id, response, repo, branch, job?) {
143-
const room = `project_${project_id}`;
144-
142+
processResponse(project_id, response, repo, branch, job = null) {
145143
if (!response.success) throw new Error(`Failed to create conversation for project ${project_id}. Error: ${JSON.stringify(response.error)}`);
146144

147145
const agentOutput = this.extractJsonFromMessage(response?.data) || {};
@@ -174,6 +172,8 @@ class AnalysisWorker {
174172

175173
if (job) {
176174
// Step 5: Emit final result
175+
const room = `project_${project_id}`;
176+
177177
this.emitJobUpdate(project_id, 'finished', 'Job finished');
178178

179179
this.io.to(room).emit('analysis_complete', {

0 commit comments

Comments
 (0)