need this

This commit is contained in:
Robin Olsen
2026-03-10 13:53:55 +01:00
parent 4c826193ee
commit 406a116786
2 changed files with 3 additions and 3 deletions

View File

@@ -23,13 +23,13 @@ func New(ctx context.Context, config Config, opts ...Option) (*App, func(), erro
}
if !config.AutoInit {
if err := b.initializer.Init(config.AppDir + "/db.db"); err != nil {
if err := b.initializer.Init(config.AppDir + "db.db"); err != nil {
return nil, nil, err
}
}
if b.issueService == nil {
sqliteStore, err := beads.NewSQLiteStorage(b.ctx, config.AppDir+"/db.db")
sqliteStore, err := beads.NewSQLiteStorage(b.ctx, config.AppDir+"db.db")
if err != nil {
return nil, nil, err
}

View File

@@ -19,7 +19,7 @@ var BaseConfig = Config{
RootCmd: "pm",
IssuePrefix: "pm",
WebAddress: ":8080",
AppDir: "./.pm",
AppDir: "./.pm/",
StatisticsStoragePath: "./.pm/stats.json",
}