Skip to content

Commit

Permalink
fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao-vi committed Oct 28, 2024
1 parent f5d8231 commit a2f56bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/suggestions/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ async function processTrainFunction(
return;
}

await IX.stop();
const status = await callback(new ObjectId(req.body.extractorId));
res.json(status);
}
Expand Down Expand Up @@ -137,6 +136,7 @@ export const suggestionsRoutes = (app: Application) => {
async (req, res, _next) => {
const IX = new InformationExtraction();
await processTrainFunction(IX.stopModel, req, res);
await IX.stop();
}
);

Expand Down

0 comments on commit a2f56bf

Please sign in to comment.