Skip to content

Commit

Permalink
Fix passport_image validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaptoss committed Sep 11, 2024
1 parent b617fa1 commit afcf765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/handlers/submit_form.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit afcf765

Please sign in to comment.