Skip to content

Commit

Permalink
Merge pull request #292 from Dmitry-Titov-K/patch-1
Browse files Browse the repository at this point in the history
fix: #291 added definition for id variable
  • Loading branch information
jsumners authored Aug 1, 2023
2 parents 3b0d314 + d3fc3c6 commit c142685
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 c142685

Please sign in to comment.