Skip to content

Commit

Permalink
fix wrong id being set in endorserDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
yesyash committed Jul 20, 2024
1 parent cdbf306 commit 0607095
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@
import com.RDS.skilltree.repositories.UserSkillRepository;
import com.RDS.skilltree.services.external.RdsService;
import com.RDS.skilltree.viewmodels.*;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.BeanUtils;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.BeanUtils;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
Expand Down Expand Up @@ -75,7 +76,7 @@ public SkillRequestsDto getAllRequests() {
RdsUserViewModel endorserRdsDetails =
rdsService.getUserDetails(endorserRdsUserId);
UserViewModel endorserDetails =
getUserModalFromRdsDetails(endorseId, endorserRdsDetails);
getUserModalFromRdsDetails(endorserId, endorserRdsDetails);
userDetails.put(endorserId, endorserDetails);
}
});
Expand Down

0 comments on commit 0607095

Please sign in to comment.