Skip to content

Commit

Permalink
Merge pull request #10 from CodeForAfrica/bugfix/use-mongosh
Browse files Browse the repository at this point in the history
Use mongosh instead of mongo
  • Loading branch information
koechkevin authored Jun 6, 2024
2 parents 72ba953 + ed51557 commit b1da9ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pr-db-mongo/pr_db_mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def delete_pr_database(original_mongodb_url, db_name):
print(f"{PLUGIN_NAME}: deleting database '{db_name}' ... ", end="")
try:
uri = get_uri(original_mongodb_url, db_name)
command = ["mongo", uri, "--eval", "db.dropDatabase()"]
command = ["mongosh", uri, "--eval", "db.dropDatabase()"]
execute_bash(command)

print("done")
Expand Down

0 comments on commit b1da9ee

Please sign in to comment.