change table to references

This commit is contained in:
Adrian Zürcher
2025-11-20 10:40:56 +01:00
parent 4a469d1fd4
commit fe194754b1
14 changed files with 101 additions and 168 deletions

View File

@@ -16,7 +16,7 @@ func (a *APIHandler) AddNewResponsible(c *gin.Context) {
return
}
var responsibles []models.Person
var responsibles []models.Responsible
err := c.BindJSON(&responsibles)
if err != nil {
a.logger.Error("AddNewResponsible", err)
@@ -30,7 +30,6 @@ func (a *APIHandler) AddNewResponsible(c *gin.Context) {
"message": err.Error(),
})
return
}
c.JSON(http.StatusOK, gin.H{