moved db to /data
All checks were successful
build and deploy kleinTodo / build (push) Successful in 11s

This commit is contained in:
Darius klein 2025-07-26 23:47:26 +02:00
parent b9dbc0c29a
commit 4a402c5f8d
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -25,3 +25,4 @@ go.work.sum
# env file # env file
.env .env
/data/

View File

@ -42,7 +42,7 @@ var (
func GetTodoDataStore() (*BoltStore, error) { func GetTodoDataStore() (*BoltStore, error) {
once.Do(func() { once.Do(func() {
// We assign to the outer 'dataStore' and 'err' variables. // We assign to the outer 'dataStore' and 'err' variables.
dataStore, err = NewBoltStore("todo.db") dataStore, err = NewBoltStore("data/todo.db")
}) })
if err != nil { if err != nil {
return nil, err return nil, err