fix note import

trunk
vilmibm 2023-03-15 08:25:06 +00:00
parent 3638685d24
commit e12d92735d
1 changed files with 6 additions and 6 deletions

View File

@ -85,13 +85,13 @@ func main() {
} }
if s.Notes != "" { if s.Notes != "" {
ts.Notes = []models.SignupNote{ note := models.SignupNote{
{ Created: time.Now(),
Author: "IMPORT", Author: "IMPORT",
Content: s.Notes, 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())) confirmContinue(fmt.Sprintf("%#v led to error %s; continue?", ts, err.Error()))
} }
} }