Fix migration script
authorr <r@freesoftwareextremist.com>
Sun, 26 Jan 2020 16:06:19 +0000 (16:06 +0000)
committerr <r@freesoftwareextremist.com>
Sun, 26 Jan 2020 16:06:19 +0000 (16:06 +0000)
migrations/csrfToken/main.go

index f2326df2a0d202584423a51a46f764eacbcde2f8..38ffbac1ea84048de881567c26645f37d8879bc8 100644 (file)
@@ -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
                }
        }