Skip to content

Commit

Permalink
fix(generators): Fix configure channels when not real-time app (#3271)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeplanqueMathis committed Sep 11, 2023
1 parent 72f48a1 commit c619ab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/generators/src/app/templates/app.tpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ${
: ''
}
app.configure(services)
app.configure(channels)
${transports.includes('websockets') ? 'app.configure(channels)' : ''}
// Register hooks that run on all service methods
Expand Down Expand Up @@ -105,7 +105,7 @@ ${
: ''
}
app.configure(services)
app.configure(channels)
${transports.includes('websockets') ? 'app.configure(channels)' : ''}
// Configure a middleware for 404s and the error handler
app.use(notFound())
Expand Down

0 comments on commit c619ab2

Please sign in to comment.