Skip to content

Commit

Permalink
fix: correct templates
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-vanesyan committed Oct 26, 2024
1 parent 52bc52d commit c576e2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/template/go_migration_tpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}})
Expand Down
3 changes: 1 addition & 2 deletions internal/template/registry_tpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"embed"
"go.inout.gg/conduit/conduitregistry"
"go.inout.gg/foundations/must"
)
var Registry = conduitregistry.New({{.Namespace}})
Expand All @@ -21,6 +20,6 @@ var Registry = conduitregistry.New({{.Namespace}})
var migrationFS embed.FS
func init() {
must.Must1(Registry.FromFS(migrationFS))
Registry.FromFS(migrationFS)
}
`))

0 comments on commit c576e2d

Please sign in to comment.