Skip to content

Commit

Permalink
undo endpoint_handler change.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeichikawasalesforce committed Nov 21, 2024
1 parent d54a68a commit 44f3dfa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tabpy/tabpy_server/handlers/endpoint_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,11 @@ def delete(self, name):

# delete files
if endpoint_info["type"] != "alias":
query_path = get_query_object_path(
delete_path = get_query_object_path(
self.settings["state_file_path"], name, None
)
staging_path = query_path.replace("/query_objects/", "/staging/endpoints/")
try:
yield self._delete_po_future(query_path)
yield self._delete_po_future(staging_path)
yield self._delete_po_future(delete_path)
except Exception as e:
self.error_out(400, f"Error while deleting: {e}")
self.finish()
Expand Down

0 comments on commit 44f3dfa

Please sign in to comment.