Skip to content

Commit

Permalink
[refactoring] 네이밍 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahn-seokjoo committed Sep 19, 2024
1 parent 98efef7 commit c2792e9
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ class ClassificationViewModel @Inject constructor(
state.copy(isLoading = true)
}
}
val allMove = moveAllPostUseCase.invoke(suggestionFolderId = folderId)
val allMoveItem = moveAllPostUseCase.invoke(suggestionFolderId = folderId)

if (allMove.isSuccess) {
if (allMoveItem.isSuccess) {
getInitialData()
}
}.invokeOnCompletion {
Expand All @@ -184,12 +184,12 @@ class ClassificationViewModel @Inject constructor(
isLoading = true,
)
}
val move = moveSinglePostUseCase.invoke(
val moveItem = moveSinglePostUseCase.invoke(
postId = cardItem.postId,
suggestionFolderId = cardItem.folderId,
)

if (move.isSuccess) {
if (moveItem.isSuccess) {
val (chips, chipList) = updateChipList()
val findCategory = chips.list.find { it.folderId == cardItem.folderId }

Expand Down Expand Up @@ -227,8 +227,8 @@ class ClassificationViewModel @Inject constructor(
isLoading = true,
)
}
val delete = deletePostUseCase.invoke(cardItem.postId)
if (delete.isSuccess) {
val deleteItem = deletePostUseCase.invoke(cardItem.postId)
if (deleteItem.isSuccess) {
val (chips, chipList) = updateChipList()
val findCategory = chips.list.find { it.folderId == cardItem.folderId }

Expand Down

0 comments on commit c2792e9

Please sign in to comment.