Skip to content

Commit 9847eaa

Browse files
committed
fix: debug
1 parent 5410af4 commit 9847eaa

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/analysisWorker.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ class AnalysisWorker {
171171
console.log(`✅ [WORKER] Analysis completed for ${project_id}. Extracted ${snippets.length} snippets.`);
172172

173173
if (job) {
174-
console.log('ciao test');
175174
// Step 5: Emit final result
176175
const room = `project_${project_id}`;
177176

src/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,9 @@ app.post('/sendMessage', async (req, res) => {
153153

154154
const data = analysisWorker.processResponse(projectId, messageResponse, repo, branch);
155155

156-
return {
157-
data,
158-
status: 'finished',
159-
};
156+
const response = {data, status: 'finished'};
157+
console.log(response);
158+
return response;
160159
} catch (err) {
161160
console.error('sendMessage endpoint error:', err);
162161
res.status(500).json({

0 commit comments

Comments
 (0)