Skip to content

Commit

Permalink
fix - issue Cannot subscribe async on 'backend' event #4
Browse files Browse the repository at this point in the history
  • Loading branch information
vedadeepta committed Sep 7, 2018
1 parent 3d0eb98 commit 55da3bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ module.exports = (options) => {
})
})

// -------------------------------------------------------> backend <#
options.ee.emit('backend', backend)

initAdmins(backend)

return {backend, mongo, redis}
Expand Down
2 changes: 2 additions & 0 deletions server/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ module.exports = (backend, appRoutes, error, options, cb) => {
let hwHandlers = racerHighway(backend, { session }, clientOptions)

let expressApp = express()
// -------------------------------------------------------> backend <#
options.ee.emit('backend', backend)

// -----------------------------------------------------> logs <#
options.ee.emit('logs', expressApp)
Expand Down

0 comments on commit 55da3bd

Please sign in to comment.