diff --git a/cmd/dumps/main.go b/cmd/dumps/main.go index 221158d..dd9ce64 100644 --- a/cmd/dumps/main.go +++ b/cmd/dumps/main.go @@ -85,13 +85,13 @@ func main() { } if s.Notes != "" { - ts.Notes = []models.SignupNote{ - { - Author: "IMPORT", - Content: s.Notes, - }, + note := models.SignupNote{ + Created: time.Now(), + Author: "IMPORT", + Content: s.Notes, + SignupID: ts.ID, } - if err = ts.RefreshNotes(db); err != nil { + if err = note.Insert(db); err != nil { confirmContinue(fmt.Sprintf("%#v led to error %s; continue?", ts, err.Error())) } }