Skip to content

Commit

Permalink
[#noissue] Fix: LexoRank index
Browse files Browse the repository at this point in the history
  • Loading branch information
haeun-i committed Mar 1, 2024
1 parent 38c48db commit 898acf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/pcb/audy/global/util/LexoRankUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public String getLexoRank(Long courseId, int order) {
LexoRank nowRank = LexoRank.parse(pinGetResList.get(order).getSequence());
return nowRank.genNext().toString();
} else { // 어떤 것의 사이에 들어간다고 했을 때
LexoRank nowRank = LexoRank.parse(pinGetResList.get(order).getSequence());
LexoRank nextRank = LexoRank.parse(pinGetResList.get(order + 1).getSequence());
LexoRank nowRank = LexoRank.parse(pinGetResList.get(order - 1).getSequence());
LexoRank nextRank = LexoRank.parse(pinGetResList.get(order).getSequence());
return nowRank.between(nextRank).toString();
}
}
Expand Down

0 comments on commit 898acf2

Please sign in to comment.