add new relational table requests
This commit is contained in:
@@ -56,7 +56,7 @@ func (a *APIHandler) GetResponsible(c *gin.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
members, err := a.DbHandler.GetResponsible(uint(i))
|
||||
responsibles, err := a.DbHandler.GetResponsible(uint(i))
|
||||
if err != nil {
|
||||
a.logger.Error("GetResponsible", err)
|
||||
c.JSON(http.StatusBadRequest, gin.H{
|
||||
@@ -64,7 +64,7 @@ func (a *APIHandler) GetResponsible(c *gin.Context) {
|
||||
})
|
||||
return
|
||||
}
|
||||
c.JSON(http.StatusOK, members)
|
||||
c.JSON(http.StatusOK, responsibles)
|
||||
}
|
||||
|
||||
func (a *APIHandler) DeleteResponsible(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user