diff --git a/src/main/java/org/hankki/hankkiserver/api/store/service/HeartCommandService.java b/src/main/java/org/hankki/hankkiserver/api/store/service/HeartCommandService.java index 64f42baa..0a60df3e 100644 --- a/src/main/java/org/hankki/hankkiserver/api/store/service/HeartCommandService.java +++ b/src/main/java/org/hankki/hankkiserver/api/store/service/HeartCommandService.java @@ -59,10 +59,10 @@ private void saveStoreHeart(final Long userId, final Long storeId) { } private void increaseStoreHeartCount(final Long storeId) { - storeFinder.getStore(storeId).updateHearCount(false); + storeFinder.getStore(storeId).updateHeartCount(false); } private void decreaseStoreHeartCount(final Long storeId) { - storeFinder.getStore(storeId).updateHearCount(true); + storeFinder.getStore(storeId).updateHeartCount(true); } } diff --git a/src/main/java/org/hankki/hankkiserver/domain/store/model/Store.java b/src/main/java/org/hankki/hankkiserver/domain/store/model/Store.java index 11cb1d21..926ac6cb 100644 --- a/src/main/java/org/hankki/hankkiserver/domain/store/model/Store.java +++ b/src/main/java/org/hankki/hankkiserver/domain/store/model/Store.java @@ -36,7 +36,7 @@ public class Store extends BaseTimeEntity { @Column(nullable = false) private boolean isDeleted; - public void updateHearCount(boolean isDeleted) { + public void updateHeartCount(boolean isDeleted) { if (isDeleted) { heartCount--; }