Fixed TG messages quotes. Fixed sync tasks loop.

This commit is contained in:
Ultradesu
2025-09-17 13:54:48 +03:00
parent f304825836
commit d4042435fe
2 changed files with 10 additions and 4 deletions

View File

@@ -297,7 +297,8 @@ def sync_users(self, server_id):
logger.info(f"Directly synced {added_count} users for Xray server {server.name}")
else:
# For non-Xray servers, sync users directly (non-Xray servers should not create tasks)
sync_result = server.sync_all_users()
real_server = server.get_real_instance()
sync_result = real_server.sync_users()
# Check if sync was successful (can be boolean or dict/string)
sync_successful = bool(sync_result) and (