Remove 'database' field from request and make all database requests go through config.

This commit is contained in:
Nikita Lutsenko
2016-02-26 21:17:04 -08:00
parent 49a4b74f7c
commit daa5f11122
3 changed files with 3 additions and 4 deletions

View File

@@ -84,7 +84,6 @@ function handleParseHeaders(req, res, next) {
info.app = cache.apps.get(info.appId);
req.config = new Config(info.appId, mount);
req.database = req.config.database;
req.info = info;
var isMaster = (info.masterKey === req.config.masterKey);