node-domain-middleware icon indicating copy to clipboard operation
node-domain-middleware copied to clipboard

removing generate id function, what's the point of having it?

Open doron2402 opened this issue 10 years ago • 2 comments

I think the middleware should keep it simple if you really want to change the domain id we should pass it as part of the arguments/options

doron2402 avatar Apr 22 '15 19:04 doron2402

Agree. This change breaks backwards compatibility, though.

palmerabollo avatar Sep 04 '15 17:09 palmerabollo

You could also do this:

require('express-domain-middleware').id = function (req) {
  return 'SOME_CUSTOM_ID'
};

evanshortiss avatar Jan 28 '16 15:01 evanshortiss