diff --git a/backend/apps/datasource/crud/datasource.py b/backend/apps/datasource/crud/datasource.py index 8c919166..868e979e 100644 --- a/backend/apps/datasource/crud/datasource.py +++ b/backend/apps/datasource/crud/datasource.py @@ -135,7 +135,7 @@ async def delete_ds(session: SessionDep, id: int): delete_table_by_ds_id(session, id) delete_field_by_ds_id(session, id) if term: - await clear_ws_resource_cache(term.oid) + await clear_ws_ds_cache(term.oid) return { "message": f"Datasource with ID {id} deleted successfully." }