fix secret delete
This commit is contained in:
parent
f4539d2715
commit
8ca5515c16
|
@ -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=",")
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue