mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-18 08:20:51 +00:00
perf: 优化账号推送
This commit is contained in:
@@ -92,7 +92,7 @@ class AccountsTaskCreateAPI(CreateAPIView):
|
||||
|
||||
def perform_create(self, serializer):
|
||||
data = serializer.validated_data
|
||||
accounts = self.get_accounts()
|
||||
accounts = data.get('accounts')
|
||||
account_ids = accounts.values_list('id', flat=True)
|
||||
asset_ids = [account.asset_id for account in accounts]
|
||||
|
||||
|
Reference in New Issue
Block a user