Use explicit create! call in mute rule creation use case

This commit is contained in:
Andreas Nedbal 2023-10-15 06:42:59 +02:00 committed by Andreas Nedbal
parent 9f8450a83c
commit 454438091b

View file

@ -7,7 +7,7 @@ module UseCase
option :phrase, type: Types::Coercible::String
def call
rule = ::MuteRule.create(
rule = ::MuteRule.create!(
user:,
muted_phrase: phrase
)