Skip to content

Commit fa0057a

Browse files
committed
MongoDBStack with proper connection name
1 parent 9bea299 commit fa0057a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/picoded/dstack/mongodb/MongoDBStack.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ public MongoDBStack(GenericConvertMap<String, Object> inConfig) {
109109
// Get the connection & database
110110
client_conn = setupFromConfig(dbConfig);
111111

112-
// Get the DB conneciton
113-
db_conn = client_conn.getDatabase(inConfig.getString("name"));
112+
// Get the DB connection
113+
db_conn = client_conn.getDatabase(inConfig.fetchString("mongodb.name"));
114114
}
115115

116116
/**

0 commit comments

Comments
 (0)