Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Исправление полных путей, контроль размера картинок, контроль типа файлов, доработка html для pdf #64

Merged
merged 5 commits into from
Dec 20, 2024

Conversation

Olgmuzalev13
Copy link
Collaborator

No description provided.

@Olgmuzalev13 Olgmuzalev13 requested a review from bqback December 19, 2024 21:46
Comment on lines +142 to +149
if err != nil {
h.logger.Errorf("function %s: got err %s", fn, err)
middleware.UniversalMarshal(w, http.StatusInternalServerError, dto.JSONResponse{
HTTPStatus: http.StatusInternalServerError,
Error: err.Error(),
})
return
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не 400? Относится ко всем этим проверкам.

Copy link
Collaborator Author

@Olgmuzalev13 Olgmuzalev13 Dec 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да вроде нет, если у нас при чтении из multipart.file в byte произошла какая-то ошибка то это пробелемы с сервером.

Comment on lines +71 to 73
if len(megaStruct.Applicant.BirthDate) > 10 {
megaStruct.Applicant.BirthDate = megaStruct.Applicant.BirthDate[:10]
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А как она у вас хранится? Просто строка YYYYMMDD? Не timestamp?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, просто строка

@bqback bqback merged commit 8861b17 into dev Dec 20, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants