polished code

This commit is contained in:
Alfred Kamanda 2024-10-17 12:55:47 +03:00
parent a759f47c8e
commit 6727bd3769
Signed by untrusted user: Alfred-mk
GPG Key ID: 7EA3D01708908703
2 changed files with 1 additions and 2 deletions

View File

@ -29,7 +29,6 @@ var (
)
func init() {
fmt.Println("Running init")
initializers.LoadEnvVariables()
}

View File

@ -68,7 +68,7 @@ func (ms *MenuStorageService) GetPersister(ctx context.Context) (*persist.Persis
func (ms *MenuStorageService) GetUserdataDb(ctx context.Context) (db.Db, error) {
database, ok := ctx.Value("Database").(string)
if !ok {
fmt.Println("The database is not set")
return nil, fmt.Errorf("failed to select the database")
}
if database == "postgres" {