Fix being able to appeal a strike unlimited times (#18529)
Peculiarity of the `has_one` association is that the convenience creation method deletes the previous association even if the new one is invalidlolsob-rspec
parent
4bb50e32e4
commit
a4410daf13
|
@ -14,7 +14,8 @@ class AppealService < BaseService
|
|||
private
|
||||
|
||||
def create_appeal!
|
||||
@appeal = @strike.create_appeal!(
|
||||
@appeal = Appeal.create!(
|
||||
strike: @strike,
|
||||
text: @text,
|
||||
account: @strike.target_account
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue