From 0bf7d518dc441e967db054af9c49f7aa8a18e698 Mon Sep 17 00:00:00 2001 From: rolinchen Date: Mon, 2 Dec 2024 11:39:55 +0800 Subject: [PATCH] feat: modify type of data source for account expired and status apis --- src/bk-user/bkuser/apis/web/organization/views/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bk-user/bkuser/apis/web/organization/views/users.py b/src/bk-user/bkuser/apis/web/organization/views/users.py index 3c4258468..215695645 100644 --- a/src/bk-user/bkuser/apis/web/organization/views/users.py +++ b/src/bk-user/bkuser/apis/web/organization/views/users.py @@ -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} @@ -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,