remove required birthday

This commit is contained in:
Adrian Zürcher
2025-11-10 18:02:46 +01:00
parent a02a7e1646
commit dd5d7afdff

View File

@@ -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{