fix secret delete

This commit is contained in:
burnettk 2022-09-29 00:03:36 -04:00
parent f4539d2715
commit 8ca5515c16
2 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def main():
}
columns_to_header_index_mappings = {}
user = UserModel.query.filter_by(username="test_user1").first()
user = UserModel.query.first()
with open("tests/files/tickets.csv") as infile:
reader = csv.reader(infile, delimiter=",")

View File

@ -1291,6 +1291,7 @@ def delete_secret(key: str) -> None:
"""Delete secret."""
current_user = UserService.current_user()
SecretService.delete_secret(key, current_user.id)
return Response(json.dumps({"ok": True}), status=200, mimetype="application/json")
def add_allowed_process_path(body: dict) -> Any: