Skip to content

Commit

Permalink
hotfix: empty object was truthy
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyTakanen authored Jul 1, 2023
1 parent f20775f commit f1dab16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async function initExpressRouter() {
app.use("/metrics", new Metrics().router)
app.use("/users", new Users().router)

if (swaggerDocument)
if (Object.keys(swaggerDocument).length > 0)
app.use(
"/docs",
swaggerUi.serve,
Expand Down

0 comments on commit f1dab16

Please sign in to comment.