fix incorrect name

This commit is contained in:
Jeffrey Duroyon
2020-05-17 01:32:18 +02:00
parent 65bba00863
commit ca8e42388b

View File

@@ -75,7 +75,7 @@ func (hc *handlersContext) createACage(c *gin.Context) {
return
}
err = hc.db.CreateCage(&cage)
err = hc.db.CreateCage(&cageToCreate)
if e, ok := err.(*dao.DAOError); ok {
switch {
case e.Type == dao.ErrTypeDuplicate: