Skip to content

Commit

Permalink
feat/#294 : NotifyRepository 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
LJH098 committed Jun 5, 2024
1 parent 186be61 commit 8f61886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class NotifyPersistenceAdapter implements NotifyPort {

@Override
public List<NotifyEntity> findByMemberEntity(MemberEntity memberEntity) {
return notifyRepository.findByMemberEntity(memberEntity);
return notifyRepository.findByReceiver(memberEntity);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import com.gaebaljip.exceed.member.adapter.out.persistence.MemberEntity;

public interface NotifyRepository extends JpaRepository<NotifyEntity, Long> {
List<NotifyEntity> findByMemberEntity(MemberEntity memberEntity);
List<NotifyEntity> findByReceiver(MemberEntity memberEntity);

@Query("delete from NotifyEntity n where n.id in :ids")
@Modifying
Expand Down

0 comments on commit 8f61886

Please sign in to comment.