Skip to content

Commit

Permalink
fix: removeするアイテムの対象のfilter条件を直す
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Jun 29, 2023
1 parent ea693a8 commit d60642c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ object System {

override def removeByGachaPrizeId(gachaPrizeId: GachaPrizeId): F[Unit] = for {
_ <- allGachaPrizesListReference.update { prizes =>
prizes.filter(_.id == gachaPrizeId)
prizes.filterNot(_.id == gachaPrizeId)
}
_ <- _gachaPersistence.deleteMineStackGachaObject(gachaPrizeId)
} yield ()
Expand Down

0 comments on commit d60642c

Please sign in to comment.