Commit e01a1850 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix: router could not be unplugged from its DAL

parent 37f2797b
......@@ -13,6 +13,10 @@ module.exports = function (PeeringService, conf, dal) {
};
function Router (PeeringService, conf, dal) {
this.setConfDAL = (theConf, theDAL) => {
dal = theDAL;
};
var logger = require('../../lib/logger')(dal.profile);
......
......@@ -122,6 +122,7 @@ function Server (dbConf, overrideConf) {
[that.IdentityService, that.MembershipService, that.PeeringService, that.BlockchainService, that.TransactionsService].map((service) => {
service.setConfDAL(that.conf, that.dal, that.pair);
});
that.router().setConfDAL(that.conf, that.dal);
return that.conf;
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment