From c576e2d3127b3fe1987d5943c5877aad11a8af10 Mon Sep 17 00:00:00 2001 From: Roman Vanesyan Date: Sun, 27 Oct 2024 02:31:53 +0300 Subject: [PATCH] fix: correct templates --- internal/template/go_migration_tpl.go | 2 +- internal/template/registry_tpl.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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) } `))