提交 ad476b41 编写于 作者: Z zhangle

update

上级 ebb1713e
......@@ -43,7 +43,7 @@ public class FavoriteService {
Favorite checkedFavorite = favoriteRepository.findByUserIdAndAppId(loginUser.getUserId(), favorite.getAppId());
if (checkedFavorite != null) {
throw new BadRequestException("Duplicate add favorite");
return checkedFavorite;
}
favorite.setPosition(POSITION_DEFAULT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册