From 936598331a2aa3bfc419d97c20e6c822c995a021 Mon Sep 17 00:00:00 2001 From: violog <51th.apprent1ce.f0rce@gmail.com> Date: Thu, 9 May 2024 15:11:11 +0300 Subject: [PATCH] Drop the line that caused nil dereference --- internal/service/api/handlers/create_identity.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/service/api/handlers/create_identity.go b/internal/service/api/handlers/create_identity.go index fbe5aca..def174f 100644 --- a/internal/service/api/handlers/create_identity.go +++ b/internal/service/api/handlers/create_identity.go @@ -235,7 +235,6 @@ func CreateIdentity(w http.ResponseWriter, r *http.Request) { if count > 0 { allowed := rand.Intn(cfg.MultiAccMaxLimit-cfg.MultiAccMinLimit+1) + cfg.MultiAccMinLimit if count >= allowed { - claim.IsBanned = true err = masterQ.Claim().FilterBy("document_hash", documentHash.String()).Update(map[string]any{ "is_banned": true, })