Skip to content
Snippets Groups Projects
Commit 261583a0 authored by Cam Saul's avatar Cam Saul
Browse files

fix the mongo connection error

parent d462c7c8
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,8 @@
(create-physical-db! [_ _])
(drop-physical-db! [this database-definition]
(mg/drop-db (mg/connect (database->connection-details this database-definition))
(escaped-name database-definition)))
(with-open [mongo-connection (mg/connect (database->connection-details this database-definition))]
(mg/drop-db mongo-connection (escaped-name database-definition))))
;; Nothing to do here, collection is created when we add documents to it
(create-physical-table! [_ _ _])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment