Skip to content

Commit bba81ca

Browse files
authored
fix: remove await (#10)
1 parent 108b451 commit bba81ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routes/literature.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ router.post("/publication/summary/", async (req, res) => {
8181
return res.status(503).json({ error: "Error getting publication summary" });
8282
}
8383
res.json(publicationSummary);
84-
await WandbTracer.finish();
84+
if (wbTracer) {
85+
await WandbTracer.finish();
86+
}
8587
});
8688

8789
export default router;

0 commit comments

Comments
 (0)