Skip to content

Commit 990dc94

Browse files
committed
fix: response sendMessage
1 parent 2495310 commit 990dc94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ app.post('/sendMessage', async (req, res) => {
149149
}
150150

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

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

0 commit comments

Comments
 (0)