Skip to content

Commit

Permalink
fix: update group batch member renew (#2550)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu327 authored Mar 4, 2024
1 parent d5aa3d0 commit a219354
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions saas/backend/apps/group/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ class GroupsMemberRenewViewSet(GenericViewSet):
group_biz = GroupBiz()

@swagger_auto_schema(
operation_description="批量用户组添加成员",
operation_description="批量用户组成员续期",
request_body=BatchGroupMemberUpdateExpiredAtSLZ(label="成员"),
responses={status.HTTP_200_OK: serializers.Serializer()},
tags=["group"],
Expand Down Expand Up @@ -598,7 +598,9 @@ def create(self, request, *args, **kwargs):
)

# 写入审计上下文
audit_context_setter(group=group, members=data["members"])
audit_context_setter(group=group, members=group_member)
provider = GroupMemberRenewAuditProvider(request)
log_api_event(request, provider)

return Response({})

Expand Down

0 comments on commit a219354

Please sign in to comment.