Fix server availability check - use is_admin instead of role relationship

This commit is contained in:
2025-12-16 20:19:12 +05:00
parent f0e53e2939
commit 4afffe9953

View File

@@ -206,7 +206,7 @@ class MonitoringWorker:
# Get all active users with admin role for server notifications
users = db.query(User).filter(
User.is_active == True,
User.role.in_(['admin', 'superadmin'])
User.is_admin == True
).all()
if not users: