refactor sqlite repository
This commit is contained in:
@@ -20,7 +20,7 @@ type SqliteRepository struct {
|
||||
ctx context.Context
|
||||
}
|
||||
|
||||
func NewSqliteRepository(dbPath string, ctx context.Context) (*SqliteRepository, error) {
|
||||
func NewSqliteRepository(ctx context.Context, dbPath string) (*SqliteRepository, error) {
|
||||
sqliteDb, err := sqlc.OpenSqliteDb(dbPath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user