diff --git a/AnalysisData/AnalysisData/Services/GraphService/GraphServices/AllNodesData/NodePaginationService.cs b/AnalysisData/AnalysisData/Services/GraphService/GraphServices/AllNodesData/NodePaginationService.cs index 4ef6861..0272104 100644 --- a/AnalysisData/AnalysisData/Services/GraphService/GraphServices/AllNodesData/NodePaginationService.cs +++ b/AnalysisData/AnalysisData/Services/GraphService/GraphServices/AllNodesData/NodePaginationService.cs @@ -66,7 +66,8 @@ private async Task> GetEntityNodesForPaginationAsync(Cla } else if (category != null && role == "dataanalyst") { - valueNodes = await _graphNodeRepository.GetEntityNodeForUserWithCategoryIdAsync(usernameGuid, category.Value); + valueNodes = + await _graphNodeRepository.GetEntityNodeForUserWithCategoryIdAsync(usernameGuid, category.Value); } else if (category == null && role == "dataanalyst") { @@ -78,11 +79,6 @@ private async Task> GetEntityNodesForPaginationAsync(Cla throw new CategoryResultNotFoundException(); } - if (!valueNodes.Any()) - { - throw new NodeNotFoundException(); - } - return valueNodes; } } \ No newline at end of file diff --git a/AnalysisData/AnalysisData/Services/UserService/AdminService/AdminService.cs b/AnalysisData/AnalysisData/Services/UserService/AdminService/AdminService.cs index d514f76..158373a 100644 --- a/AnalysisData/AnalysisData/Services/UserService/AdminService/AdminService.cs +++ b/AnalysisData/AnalysisData/Services/UserService/AdminService/AdminService.cs @@ -34,9 +34,7 @@ public async Task UpdateUserInformationByAdminAsync(Guid id, UpdateAdminDto upda _validationService.EmailCheck(updateAdminDto.Email); _validationService.PhoneNumberCheck(updateAdminDto.PhoneNumber); await CheckExistenceOfRole(user,updateAdminDto); - await SetUpdatedInformation(user, updateAdminDto); - await _jwtService.UpdateUserCookie(user.Username, false); } private async Task ValidateUserInformation(User user,UpdateAdminDto updateAdminDto)