Skip to content

Commit

Permalink
WIP: Minor bug fix in rdbms.go
Browse files Browse the repository at this point in the history
  • Loading branch information
shashank-priyadarshi committed Feb 17, 2024
1 parent bf9fd76 commit c5fa5a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database/internal/connections/rdbms.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ func NewRDBMSClient(ctx context.Context, log ports.Logger, config *models.Config
case true:
switch config.Options.ORM {
case constants.GORM:
if gormDB, err := createGORMConnection(config.Options.Driver, conn); err != nil {
var gormDB *gorm.DB
if gormDB, err = createGORMConnection(config.Options.Driver, conn); err != nil {
err = fmt.Errorf("error creating gorm connection: %v", err)
return
} else {
Expand Down

0 comments on commit c5fa5a3

Please sign in to comment.