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 535228159b
commit 8de6e3d3ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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