Skip to content

Commit

Permalink
refactor(deprecation): update goose.Run to goose.RunContext
Browse files Browse the repository at this point in the history
  • Loading branch information
joaofnds committed Dec 27, 2023
1 parent ccf9449 commit 96c8cfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/migrate/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ func main() {
logger.NopLoggerProvider,
config.Module,
postgres.Module,
fx.Invoke(func(db *sql.DB, config postgres.Config) error {
fx.Invoke(func(ctx context.Context, db *sql.DB, config postgres.Config) error {
goose.SetBaseFS(migrations)
action, args := os.Args[1], os.Args[2:]
err := goose.Run(action, db, dir(action), args...)
err := goose.RunContext(ctx, action, db, dir(action), args...)
if err != nil {
fmt.Println(strings.ReplaceAll(err.Error(), `\n`, "\n"))
}
Expand Down

0 comments on commit 96c8cfe

Please sign in to comment.