mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
fixed irregularities
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
"github.com/go-pg/pg/v10"
|
||||
)
|
||||
|
||||
func CreateConnection(dbUrl string, ctx context.Context) *pg.DB {
|
||||
func CreateConnection(ctx context.Context, dbUrl string) *pg.DB {
|
||||
opt, err := pg.ParseURL(dbUrl)
|
||||
common.CheckError(err)
|
||||
conn := pg.Connect(opt)
|
||||
|
||||
Reference in New Issue
Block a user