Skip to content

Commit

Permalink
fix uninitialized hashing service (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandremr01 authored Jun 8, 2022
1 parent 506a47f commit 9737cb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

"github.com/kenji-yamane/mgr8/applications"
"github.com/kenji-yamane/mgr8/domain"
"github.com/kenji-yamane/mgr8/infrastructure"
)

type apply struct {
Expand All @@ -36,6 +37,7 @@ type Migrations struct {
}

func (a *apply) execute(args []string, databaseURL string, migrationsDir string, driver domain.Driver) error {
a.hashService = applications.NewHashService(infrastructure.NewFileService())
dir := migrationsDir
migrationFiles, err := getMigrationsFiles(dir)
if err != nil {
Expand Down

0 comments on commit 9737cb3

Please sign in to comment.