From 203aadaee1105f33823dbdca35ff0f004d4e85b1 Mon Sep 17 00:00:00 2001 From: Arnaud Delcasse Date: Mon, 7 Nov 2022 03:08:59 +0100 Subject: [PATCH] Fix beneficiaries issue with File numbers --- Dockerfile | 1 + handlers/application/beneficiaries.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f399fe2..3911f31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,7 @@ COPY . . RUN go mod download && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /server +RUN rm -r themes/* RUN git clone --depth 1 https://git.coopgo.io/coopgo-apps/parcoursmob-default-theme themes/default RUN git clone -b spie06 --depth 1 https://git.coopgo.io/coopgo-apps/parcoursmob-default-theme themes/spie06 diff --git a/handlers/application/beneficiaries.go b/handlers/application/beneficiaries.go index 73bd6b8..6578f04 100644 --- a/handlers/application/beneficiaries.go +++ b/handlers/application/beneficiaries.go @@ -36,7 +36,7 @@ type BeneficiariesForm struct { Email string `json:"email" validate:"required,email"` Birthdate *time.Time `json:"birthdate" validate:"required"` PhoneNumber string `json:"phone_number" validate:"required,phoneNumber"` - FileNumber string `json:"file_number" validate:"required"` + FileNumber string `json:"file_number"` Address any `json:"address,omitempty"` Gender string `json:"gender"` }