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
1 changed files with 1 additions and 1 deletions

View File

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