Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd5d7afdff |
@@ -37,9 +37,7 @@ func (a *APIHandler) AddNewMember(c *gin.Context) {
|
||||
if member.LastName == "" {
|
||||
text += "lastName "
|
||||
}
|
||||
if member.Birthday == "" {
|
||||
text += "birthday "
|
||||
}
|
||||
|
||||
if text != "" {
|
||||
a.logger.Error("AddNewMember", text+"can not be empty")
|
||||
c.JSON(http.StatusBadRequest, gin.H{
|
||||
|
||||
Reference in New Issue
Block a user