Commit ad476b41 by zhangle

update

parent ebb1713e
...@@ -43,7 +43,7 @@ public class FavoriteService { ...@@ -43,7 +43,7 @@ public class FavoriteService {
Favorite checkedFavorite = favoriteRepository.findByUserIdAndAppId(loginUser.getUserId(), favorite.getAppId()); Favorite checkedFavorite = favoriteRepository.findByUserIdAndAppId(loginUser.getUserId(), favorite.getAppId());
if (checkedFavorite != null) { if (checkedFavorite != null) {
throw new BadRequestException("Duplicate add favorite"); return checkedFavorite;
} }
favorite.setPosition(POSITION_DEFAULT); favorite.setPosition(POSITION_DEFAULT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment