Skip to content

Commit d3f582b

Browse files
committed
Remove redundant patch
1 parent e0f42c6 commit d3f582b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/application.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -290,17 +290,9 @@ Origin.prototype.createServer = function (options, cb) {
290290
requestDomain.session = req.session;
291291
requestDomain.on('error', next);
292292
requestDomain.run(next);
293-
req.domain = requestDomain;
294293
});
295294
server.use(auth.initialize());
296295
server.use(auth.session());
297-
server.use((req, res, next) => {
298-
if (!process.domain) {
299-
// set process.domain again, fixes adaptlearning/adapt_authoring#2504
300-
req.domain.enter();
301-
}
302-
next();
303-
});
304296
server.use(express.static(path.join(require('./configuration').serverRoot, 'frontend', 'build')));
305297
server.use(express.static(path.join(require('./configuration').serverRoot, 'frontend', 'src', 'libraries')));
306298
if(!app.configuration.getConfig('isProduction')) {

0 commit comments

Comments
 (0)