From bba81ca40a10cc812d80973cf632bbd3f71e9d8a Mon Sep 17 00:00:00 2001 From: Carlos Cruz Date: Tue, 27 Jun 2023 17:04:54 +0100 Subject: [PATCH] fix: remove await (#10) --- routes/literature.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/literature.js b/routes/literature.js index 91e61a7..15051c8 100644 --- a/routes/literature.js +++ b/routes/literature.js @@ -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;