mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 14:14:49 +02:00
Prevent creating duplicate domain status history record
This commit is contained in:
parent
5d313f51fd
commit
a7db42b944
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ module Admin
|
|||
rollback_history = @domain.json_statuses_history&.[]('admin_store_statuses_history')
|
||||
dp = ignore_empty_statuses
|
||||
@domain.is_admin = true
|
||||
@domain.admin_status_update dp[:statuses]
|
||||
PaperTrail.request(enabled: false) do
|
||||
@domain.admin_status_update dp[:statuses]
|
||||
end
|
||||
|
||||
if @domain.update(dp)
|
||||
flash[:notice] = I18n.t('domain_updated')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue