Skip to content

Commit

Permalink
Fix test connection on mongodb datasource (#4785)
Browse files Browse the repository at this point in the history
Co-authored-by: Weng Kham Kan <wengkham.kan@icarasia.com>
  • Loading branch information
wengkham and Weng Kham Kan authored Apr 14, 2020
1 parent 3df1a86 commit f7df6e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/query_runner/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def test_connection(self):
if not db.command("connectionStatus")["ok"]:
raise Exception("MongoDB connection error")

return db_connection[self.db_name]
return db


def _merge_property_names(self, columns, document):
Expand Down

0 comments on commit f7df6e0

Please sign in to comment.