mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-12-23 03:43:38 +02: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