Fix migration script

This commit is contained in:
r 2020-01-26 16:06:19 +00:00
parent ea79a5f05b
commit 57d2a4288b

View File

@ -67,15 +67,18 @@ func main() {
for _, id := range sessionIds { for _, id := range sessionIds {
s, err := sessionRepo.Get(id) s, err := sessionRepo.Get(id)
if err != nil { if err != nil {
log.Fatal(err) log.Println(id, err)
continue
} }
s.CSRFToken, err = util.NewCSRFToken() s.CSRFToken, err = util.NewCSRFToken()
if err != nil { if err != nil {
log.Fatal(err) log.Println(id, err)
continue
} }
err = sessionRepo.Add(s) err = sessionRepo.Add(s)
if err != nil { if err != nil {
log.Fatal(err) log.Println(id, err)
continue
} }
} }