fix: 修复su-from-accounts API 500问题,Unsubscribe msg error 转成debug

This commit is contained in:
feng
2023-03-08 10:58:37 +08:00
parent bb30fcd7fd
commit 8833b19d79
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ class AccountViewSet(OrgBulkModelViewSet):
asset = get_object_or_404(Asset, pk=asset_id)
accounts = asset.accounts.all()
else:
accounts = []
accounts = Account.objects.none()
accounts = self.filter_queryset(accounts)
serializer = serializers.AccountSerializer(accounts, many=True)
return Response(data=serializer.data)