fix update data

This commit is contained in:
SowinskiBraeden committed 2022-09-28 13:31:17 -07:00
1 parent f2f8b94c33
commit 1bc9618690
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ func (c Cow) CowHandlerQuery(w http.ResponseWriter, r *http.Request) {
return return
} }
dbResp, err := c.DB.Find(context.TODO(), bson.M{"Detials.Name": query.Name}) // Search by cow name dbResp, err := c.DB.Find(context.TODO(), bson.M{"detials.name": query.Name}) // Search by cow name
if err != nil { if err != nil {
config.ErrorStatus("failed to get cows", http.StatusNotFound, w, err) config.ErrorStatus("failed to get cows", http.StatusNotFound, w, err)
return return