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