diff --git a/internal/template/go_migration_tpl.go b/internal/template/go_migration_tpl.go index ef662fb..144289f 100644 --- a/internal/template/go_migration_tpl.go +++ b/internal/template/go_migration_tpl.go @@ -22,7 +22,7 @@ import ( func init() { {{- if .HasCustomRegistry}} Registry.UpTx(up{{.Version}}) - Regsitry.DownTx(down{{.Version}}) + Registry.DownTx(down{{.Version}}) {{- else}} conduit.UpTx(up{{.Version}}) conduit.DownTx(down{{.Version}}) diff --git a/internal/template/registry_tpl.go b/internal/template/registry_tpl.go index 0d3c843..3fddcb4 100644 --- a/internal/template/registry_tpl.go +++ b/internal/template/registry_tpl.go @@ -12,7 +12,6 @@ import ( "embed" "go.inout.gg/conduit/conduitregistry" - "go.inout.gg/foundations/must" ) var Registry = conduitregistry.New({{.Namespace}}) @@ -21,6 +20,6 @@ var Registry = conduitregistry.New({{.Namespace}}) var migrationFS embed.FS func init() { - must.Must1(Registry.FromFS(migrationFS)) + Registry.FromFS(migrationFS) } `))