Move and cleanup getting collections into MongoStorageAdapter.

This commit is contained in:
Nikita Lutsenko
2016-02-27 03:02:38 -08:00
parent 7215300c1e
commit eb892830e6
3 changed files with 25 additions and 15 deletions

View File

@@ -52,8 +52,6 @@ function getDatabaseConnection(appId: string, collectionPrefix: string) {
dbConnections[appId] = new DatabaseController(storageAdapter, {
collectionPrefix: collectionPrefix
});
dbConnections[appId].connect();
return dbConnections[appId];
}