Skip to content

Commit

Permalink
fix: adding tx to implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Jun 28, 2024
1 parent b9dcbd2 commit 13053f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ type ReadWriteTxFactory[W any] func(*gorm.DB) (W, error)

// NewDatabase returns a new instance of db.
func NewDatabase[R, W any](conn *gorm.DB, r ReadTxFactory[R], rw ReadWriteTxFactory[W]) (Database[R, W], error) {
return &databaseImpl[R, W]{
conn: conn,
}, nil
return &databaseImpl[R, W]{r, rw, conn}, nil
}

// Close closes the database connection.
Expand Down

0 comments on commit 13053f3

Please sign in to comment.