mirror of
https://git.freesoftwareextremist.com/bloat
synced 2024-12-22 17:10:42 +00:00
Fix migration script
This commit is contained in:
parent
ea79a5f05b
commit
57d2a4288b
1 changed files with 6 additions and 3 deletions
|
@ -67,15 +67,18 @@ func main() {
|
|||
for _, id := range sessionIds {
|
||||
s, err := sessionRepo.Get(id)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
log.Println(id, err)
|
||||
continue
|
||||
}
|
||||
s.CSRFToken, err = util.NewCSRFToken()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
log.Println(id, err)
|
||||
continue
|
||||
}
|
||||
err = sessionRepo.Add(s)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
log.Println(id, err)
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue