Cleaning up query
This commit is contained in:
parent
bfcee865c5
commit
499d6b0024
@ -118,7 +118,7 @@ func getCategories(rw http.ResponseWriter, req *http.Request) {
|
|||||||
Id int `json:"id"`
|
Id int `json:"id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
rows, err := db.Query("SELECT * FROM categories")
|
rows, err := db.Query("SELECT description, id FROM categories")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user