Skip to content

Commit

Permalink
fix: remove await (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
carcruz authored Jun 27, 2023
1 parent 108b451 commit bba81ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion routes/literature.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ router.post("/publication/summary/", async (req, res) => {
return res.status(503).json({ error: "Error getting publication summary" });
}
res.json(publicationSummary);
await WandbTracer.finish();
if (wbTracer) {
await WandbTracer.finish();
}
});

export default router;

0 comments on commit bba81ca

Please sign in to comment.