remove deprecated todo statements
This commit is contained in:
3 files changed
-6
No files matched your search
@@ -113,8 +113,6 @@ func (c Cow) NewCowHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
json.NewEncoder(w).Encode(response)
|
json.NewEncoder(w).Encode(response)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: fix all update handlers because they don't work
|
|
||||||
|
|
||||||
// UpdateCowHandler gets updates the data for an existing cow and returns a result and error
|
// UpdateCowHandler gets updates the data for an existing cow and returns a result and error
|
||||||
func (c Cow) UpdateCowHandler(w http.ResponseWriter, r *http.Request) {
|
func (c Cow) UpdateCowHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
cowID := mux.Vars(r)["cow_id"]
|
cowID := mux.Vars(r)["cow_id"]
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ import (
|
|||||||
|
|
||||||
const cowName = "cows"
|
const cowName = "cows"
|
||||||
|
|
||||||
// TODO: fix all update handlers because they don't work
|
|
||||||
|
|
||||||
// CowDatabase contains the methods to use with the cow database
|
// CowDatabase contains the methods to use with the cow database
|
||||||
type CowDatabase interface {
|
type CowDatabase interface {
|
||||||
FindOne(ctx context.Context, filter interface{}) (*models.Cow, error)
|
FindOne(ctx context.Context, filter interface{}) (*models.Cow, error)
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ import (
|
|||||||
"github.com/SowinskiBraeden/SulliCartShare/config"
|
"github.com/SowinskiBraeden/SulliCartShare/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO: fix all update handlers because they don't work
|
|
||||||
|
|
||||||
// DatabaseHelper contains the collection and client to be used to access the methods
|
// DatabaseHelper contains the collection and client to be used to access the methods
|
||||||
// defined below
|
// defined below
|
||||||
type DatabaseHelper interface {
|
type DatabaseHelper interface {
|
||||||
|
|||||||
Reference in new issue
Block a user