From afcf76598289d769df6c83af4ad38257a4d58e86 Mon Sep 17 00:00:00 2001 From: Zaptoss Date: Wed, 11 Sep 2024 19:17:08 +0300 Subject: [PATCH] Fix passport_image validation --- internal/service/handlers/submit_form.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/handlers/submit_form.go b/internal/service/handlers/submit_form.go index 66d41ee..4d6a365 100644 --- a/internal/service/handlers/submit_form.go +++ b/internal/service/handlers/submit_form.go @@ -74,7 +74,7 @@ func SubmitForm(w http.ResponseWriter, r *http.Request) { return } - if err = Storage(r).ValidateImage(passportImageURL, lastForm.ID+"-2"); err != nil { + if err = Storage(r).ValidateImage(passportImageURL, lastForm.ID+"-pass"); err != nil { if storage.IsBadRequestError(err) { ape.RenderErr(w, problems.BadRequest(validation.Errors{ "passport_image": err,