postgres-switch #113
@ -29,7 +29,6 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
fmt.Println("Running init")
|
|
||||||
initializers.LoadEnvVariables()
|
initializers.LoadEnvVariables()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ func (ms *MenuStorageService) GetPersister(ctx context.Context) (*persist.Persis
|
|||||||
func (ms *MenuStorageService) GetUserdataDb(ctx context.Context) (db.Db, error) {
|
func (ms *MenuStorageService) GetUserdataDb(ctx context.Context) (db.Db, error) {
|
||||||
database, ok := ctx.Value("Database").(string)
|
database, ok := ctx.Value("Database").(string)
|
||||||
if !ok {
|
if !ok {
|
||||||
fmt.Println("The database is not set")
|
return nil, fmt.Errorf("failed to select the database")
|
||||||
}
|
}
|
||||||
|
|
||||||
if database == "postgres" {
|
if database == "postgres" {
|
||||||
Alfred-mk marked this conversation as resolved
Outdated
|
|||||||
|
Loading…
Reference in New Issue
Block a user
postgres shouold be implemented for both userdatatstore and state store