-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from osstotalsoft/features/missing-updates
small fixes in middlewares
- Loading branch information
Showing
6 changed files
with
28,275 additions
and
13,802 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
generators/app/templates/infrastructure/src/middleware/logger/loggingMiddleware.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
const { logger } = require("../../startup"); | ||
|
||
const loggingMiddleware = async (ctx, next) => { | ||
ctx.logger = logger; | ||
await next(); | ||
}; | ||
if (!ctx.logger) ctx.logger = require('../../startup/logger') | ||
await next() | ||
} | ||
|
||
module.exports = loggingMiddleware; | ||
module.exports = loggingMiddleware |
2 changes: 1 addition & 1 deletion
2
generators/app/templates/infrastructure/src/pubSub/middleware/correlationPublish.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.