mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-08-21 14:37:16 +00:00
Fix
This commit is contained in:
@@ -47,12 +47,13 @@ def sync_server(id):
|
||||
return {"status": Server.objects.get(id=id).sync()}
|
||||
|
||||
@shared_task(name="sync_user_on_server")
|
||||
def sync_user(user, server_id):
|
||||
def sync_user(user_id, server_id):
|
||||
from .models import User, ACL
|
||||
from vpn.server_plugins import Server
|
||||
|
||||
errors = {}
|
||||
result = {}
|
||||
user = User.objects.get(id=user_id)
|
||||
acls = ACL.objects.filter(user=user)
|
||||
|
||||
server = Server.objects.get(id=server_id)
|
||||
|
Reference in New Issue
Block a user