Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: modify type of data source for account expired and status apis #2000

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/bk-user/bkuser/apis/web/organization/views/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ class TenantUserAccountExpiredAtBatchUpdateApi(
)
def put(self, request, *args, **kwargs):
cur_tenant_id = self.get_current_tenant_id()
data_source = self.get_current_tenant_local_real_data_source()
data_source = self.get_current_tenant_real_data_source()

slz = TenantUserAccountExpiredAtBatchUpdateInputSLZ(
data=request.data, context={"tenant_id": cur_tenant_id, "data_source_id": data_source.id}
Expand Down Expand Up @@ -1073,7 +1073,7 @@ class TenantUserStatusBatchUpdateApi(
)
def put(self, request, *args, **kwargs):
cur_tenant_id = self.get_current_tenant_id()
data_source = self.get_current_tenant_local_real_data_source()
data_source = self.get_current_tenant_real_data_source()

slz = TenantUserStatusBatchUpdateInputSLZ(
data=request.data,
Expand Down