small improvements

This commit is contained in:
bronku 2026-06-11 09:10:27 +02:00
parent bb32802324
commit 5f2d6f00bc
10 changed files with 117 additions and 178 deletions

View file

@ -4,13 +4,11 @@ import (
"database/sql"
"log"
"git.bronku.xyz/bronku/cake-order-tracker/models"
_ "github.com/mattn/go-sqlite3"
)
type Store struct {
db *sql.DB
cakes []models.Cake
db *sql.DB
}
func OpenStore(filename string) *Store {
@ -23,11 +21,6 @@ func OpenStore(filename string) *Store {
}
out.loadMigrations()
out.cakes, err = out.loadCakes()
log.Println(out.cakes)
if err != nil {
log.Fatal(err)
}
return &out
}