Move Mongo database property directly to mongo adapter.

This commit is contained in:
Nikita Lutsenko
2016-02-27 02:37:38 -08:00
parent 997da898eb
commit 7215300c1e
5 changed files with 16 additions and 23 deletions

View File

@@ -164,7 +164,7 @@ function modifySchema(req) {
.then(() => schema.deleteField(
submittedFieldName,
className,
req.config.database.db,
req.config.database.adapter.database,
req.config.database.collectionPrefix
));
deletionPromises.push(promise);
@@ -246,7 +246,7 @@ function deleteSchema(req) {
//tried to delete non-existant class
resolve({ response: {}});
} else {
removeJoinTables(req.config.database.db, req.config.database.collectionPrefix, doc.value)
removeJoinTables(req.config.database.adapter.database, req.config.database.collectionPrefix, doc.value)
.then(resolve, reject);
}
});