aboutsummaryrefslogtreecommitdiff
path: root/migrations
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-01-26 16:06:19 +0000
committerr <r@freesoftwareextremist.com>2020-01-26 16:06:19 +0000
commit57d2a4288b02fd1245ee85ae629649798578cf6c (patch)
tree3aa8130bc6cb04f7f0e6b8225f461a7f8816cb51 /migrations
parentea79a5f05b01ba74354459f1ed1bdb7bd0e3b4f0 (diff)
downloadbloat-57d2a4288b02fd1245ee85ae629649798578cf6c.tar.gz
bloat-57d2a4288b02fd1245ee85ae629649798578cf6c.zip
Fix migration script
Diffstat (limited to 'migrations')
-rw-r--r--migrations/csrfToken/main.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/migrations/csrfToken/main.go b/migrations/csrfToken/main.go
index f2326df..38ffbac 100644
--- a/migrations/csrfToken/main.go
+++ b/migrations/csrfToken/main.go
@@ -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
}
}