mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 23:48:03 +08:00
Include other notification types to migration
This commit is contained in:
parent
3bf218b5f6
commit
c70bc67347
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ class MigrateNotificationToNoticed < ActiveRecord::Migration[7.0]
|
|||
notification = user_notification.notification.dup
|
||||
|
||||
new_type = type_mapping[notification.type_of]
|
||||
new_type ||= 'GeneralNotification'
|
||||
|
||||
params = {
|
||||
title: notification.title,
|
||||
|
|
Loading…
Reference in a new issue