Add comment to database()
This commit is contained in:
@@ -261,7 +261,6 @@ func (app *App) handleAddOrder(w http.ResponseWriter, r *http.Request) {
|
||||
"INSERT INTO orders (username, soup, main, side, created_at, status) VALUES (?, ?, ?, ?, ?, ?)",
|
||||
username, in.Soup, in.Main, in.Side, now, "active",
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
@@ -1035,5 +1034,4 @@ func main() {
|
||||
if err := srv.ListenAndServe(); err != nil && err != http.ErrServerClosed {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user