mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
Merge pull request #6480 from aignatov-bio/ai-sci-include-other-notifications-type-to-migration
Include other notification types to migration
This commit is contained in:
commit
7094d8828c
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ class MigrateNotificationToNoticed < ActiveRecord::Migration[7.0]
|
||||||
notification = user_notification.notification.dup
|
notification = user_notification.notification.dup
|
||||||
|
|
||||||
new_type = type_mapping[notification.type_of]
|
new_type = type_mapping[notification.type_of]
|
||||||
|
new_type ||= 'GeneralNotification'
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
title: notification.title,
|
title: notification.title,
|
||||||
|
|
Loading…
Reference in a new issue