mirror of
https://git.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-25 21:31:27 +00:00
Fix migration script
This commit is contained in:
parent
ea79a5f05b
commit
57d2a4288b
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue