Add comment to database()

This commit is contained in:
2025-10-16 09:22:18 +02:00
parent 20c8981268
commit 5348777ed4
2 changed files with 4 additions and 2 deletions

View File

@@ -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)
}
}