Skip to content

Commit

Permalink
Updated command to delete database on destroy to use mongosh
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Jun 6, 2024
1 parent 72ba953 commit ed51557
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 ed51557

Please sign in to comment.