Revert "fix - deal with case when check view exists returns None (#5740)" (#5741)

This reverts commit 535228159b.
This commit is contained in:
Ishaan Jaff 2024-09-17 09:04:22 -07:00 committed by GitHub
parent 9536038165
commit 2064297cf9

View file

@ -991,11 +991,6 @@ class PrismaClient:
"""
)
expected_total_views = len(expected_views)
# Deal with case when ret is None
if ret is None:
ret = [{"view_count": 0, "view_names": []}]
if ret[0]["view_count"] == expected_total_views:
verbose_proxy_logger.info("All necessary views exist!")
return