change table to references
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user