Skip to content

Commit

Permalink
Add confirmation that tests actually passed
Browse files Browse the repository at this point in the history
  • Loading branch information
aulorbe committed Oct 28, 2024
1 parent 7a4b8d6 commit f5cc553
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/api/createSeedQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ export default async function handler(
console.log('Index name = ', indexName);

// Step 5. Send the query results back
if (res.status(200)) {
console.log('Test passed!');
}
res.status(200).json({ queryResult: queryResponse, indexName: indexName });
} catch (error) {
res.status(500).json({ error: error.message });
Expand Down

0 comments on commit f5cc553

Please sign in to comment.