From 57d2a4288b02fd1245ee85ae629649798578cf6c Mon Sep 17 00:00:00 2001 From: r Date: Sun, 26 Jan 2020 16:06:19 +0000 Subject: Fix migration script --- migrations/csrfToken/main.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'migrations') 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 } } -- cgit v1.2.3