Skip to content

Commit

Permalink
fix: pinojs#291 added definition for id variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry-Titov-K committed Aug 1, 2023
1 parent 3b0d314 commit d3fc3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const logger = require('pino-http')({
genReqId: function (req, res) {
const existingID = req.id ?? req.headers["x-request-id"]
if (existingID) return existingID
id = randomUUID()
const id = randomUUID()
res.setHeader('X-Request-Id', id)
return id
},
Expand Down

0 comments on commit d3fc3c6

Please sign in to comment.