From 25d4fbfc1d5cfbef505fb58cfde526f38346443c Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Mon, 17 Mar 2025 01:08:58 -0400 Subject: [PATCH] Fix notification metadata field name in migration to ensure proper updates --- .../20250314_fix_notification_metadata_experiment_modal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/20250314_fix_notification_metadata_experiment_modal.go b/migrations/20250314_fix_notification_metadata_experiment_modal.go index 9226494..3d3618c 100644 --- a/migrations/20250314_fix_notification_metadata_experiment_modal.go +++ b/migrations/20250314_fix_notification_metadata_experiment_modal.go @@ -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 }