mirror of
https://github.com/rodneyosodo/uber4freefood.git
synced 2026-06-23 04:10:18 +00:00
corrections for angeluserid and humanuserid fields
This commit is contained in:
@@ -26,7 +26,7 @@ func CreateFood(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
//create food post
|
||||
food := models.Food{FoodName: input.FoodName, DietType: input.DietType, Description: input.Description, SpecialIngridients: input.SpecialIngridients, Serving: input.Serving, SpecialNote: input.SpecialNote, FoodImageId: input.FoodImageId, LocationLat: input.LocationLat, LocationLong: input.LocationLong, Status: input.Status}
|
||||
food := models.Food{FoodName: input.FoodName, DietType: input.DietType, Description: input.Description, SpecialIngridients: input.SpecialIngridients, Serving: input.Serving, SpecialNote: input.SpecialNote, FoodImageId: input.FoodImageId, LocationLat: input.LocationLat, LocationLong: input.LocationLong, AngelUserID:input.AngelUserID, HumanUserID: input.HumanUserID, Status: input.Status}
|
||||
db.Create(&food)
|
||||
c.JSON(http.StatusOK, gin.H{"data": food})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user