Merge branch 'dev'

This commit is contained in:
Mo Tarbin 2025-03-17 01:09:14 -04:00
commit cbd82c0e50

View file

@ -28,7 +28,7 @@ func (m MigrateFixNotificationMetadataExperimentModal20241212) Up(ctx context.Co
return db.Transaction(func(tx *gorm.DB) error {
// Update all chore where notification metadata is a null stirng 'null' to empty json {}:
if err := tx.Table("chores").Where("notification_metadata = ?", "null").Update("notification_metadata", "{}").Error; err != nil {
if err := tx.Table("chores").Where("notification_meta = ?", "null").Update("notification_meta", "{}").Error; err != nil {
log.Errorf("Failed to update chores with null notification metadata: %v", err)
return err
}