Skip to content

Commit

Permalink
[MODIFY] getAllbooth debug
Browse files Browse the repository at this point in the history
- getAllbooth debug
  • Loading branch information
himodu committed May 21, 2024
1 parent da92e3f commit 15746af
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ public AllBooth getAllbooth(String userHash) {
// Likable Service
if(!userBoothEntityList.isEmpty()){
for(UserBoothEntity userBooth : userBoothEntityList){
Booth tempbooth = boothDtos.get(userBooth.getBooth().getId().intValue()-1);

BoothEntity booth = userBooth.getBooth();
int index = boothes.indexOf(booth);
Booth tempbooth = boothDtos.get(index);
tempbooth.setLikable(false);
boothDtos.set(userBooth.getBooth().getId().intValue()-1, tempbooth);
boothDtos.set(index, tempbooth);
}
}

Expand Down

0 comments on commit 15746af

Please sign in to comment.