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:
aignatov-bio 2023-10-18 12:49:38 +02:00 committed by GitHub
commit 7094d8828c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,