forked from tildetown/town
fix note import
parent
3638685d24
commit
e12d92735d
|
@ -85,13 +85,13 @@ func main() {
|
|||
}
|
||||
|
||||
if s.Notes != "" {
|
||||
ts.Notes = []models.SignupNote{
|
||||
{
|
||||
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()))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue