Skip to content

Commit 5410af4

Browse files
committed
fix: potpie client instantiation
1 parent 673cabe commit 5410af4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,8 @@ app.post('/sendMessage', async (req, res) => {
147147
}
148148
});
149149
}
150-
console.log('ECCOMI');
151150

152-
const messageResponse = await this.potpieClient.sendMessage(projectId, questionPrompt);
151+
const messageResponse = await potpieClient.sendMessage(projectId, questionPrompt);
153152
if (!messageResponse.success) throw new Error(`Failed to create conversation for project ${projectId}. Error: ${JSON.stringify(response.error)}`);
154153

155154
const data = analysisWorker.processResponse(projectId, messageResponse, repo, branch);
@@ -163,7 +162,7 @@ app.post('/sendMessage', async (req, res) => {
163162
res.status(500).json({
164163
success: false,
165164
error: 'Internal server error during sendMessage process',
166-
message: error.message,
165+
message: err.message,
167166
timestamp: new Date().toISOString()
168167
});
169168
}

0 commit comments

Comments
 (0)