Fix update to omit "selected" field.
This commit is contained in:
@@ -34,7 +34,7 @@ func SyncProclamations(apiURL string, database *gorm.DB) ([]db.Proclamation, err
|
||||
// 3. Persist to Database
|
||||
// Using Transaction ensures we don't end up with partial data if something fails
|
||||
err = database.Transaction(func(tx *gorm.DB) error {
|
||||
if err := tx.Save(&proclamations).Error; err != nil {
|
||||
if err := tx.Omit("selected").Save(&proclamations).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user