Use changesets correctly when updating objects (#976)

This commit is contained in:
WithoutPants
2020-12-04 12:42:56 +11:00
committed by GitHub
parent 6eea33aec9
commit 86747acc78
34 changed files with 624 additions and 669 deletions

View File

@@ -73,7 +73,7 @@ func (i *Importer) Create() (*int, error) {
func (i *Importer) Update(id int) error {
performer := i.performer
performer.ID = id
_, err := i.ReaderWriter.Update(performer)
_, err := i.ReaderWriter.UpdateFull(performer)
if err != nil {
return fmt.Errorf("error updating existing performer: %s", err.Error())
}