fix - return none on get stat on quota

This commit is contained in:
2025-12-03 09:31:23 +03:30
parent 782649e487
commit 3da9368c9c

View File

@@ -547,7 +547,7 @@ class Quota(BaseModel):
organization=org
)
# first quota created is none stat on attribute & broker value table
if stat.stat_type == 'quota':
if stat.first().stat_type == 'quota':
return None
return stat.first() if stat.exists() else None