update config module

This commit is contained in:
2025-03-22 12:58:10 +03:00
parent 5e7d4033e4
commit 8f4b021a93
30 changed files with 437 additions and 375 deletions

View File

@ -59,7 +59,7 @@ type version struct {
}
type Config interface {
GetPaths(ctx context.Context) *config.Paths
GetPaths() *config.Paths
}
type Database struct {
@ -82,7 +82,7 @@ func (d *Database) Init(ctx context.Context) error {
}
func (d *Database) Connect(ctx context.Context) error {
dsn := d.config.GetPaths(ctx).DBPath
dsn := d.config.GetPaths().DBPath
db, err := sqlx.Open("sqlite", dsn)
if err != nil {
return err