diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-01-06 11:53:18 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-01-06 11:53:18 -0500 |
| commit | 64a8adf7039ea91d0674c80e05f4942116c5339f (patch) | |
| tree | bd967c2c631439132b84e80759e3eef80949cd5d /internal/commands | |
| parent | Tweak a few comments (diff) | |
| download | cli-64a8adf7039ea91d0674c80e05f4942116c5339f.zip | |
Tweak model tests
Diffstat (limited to 'internal/commands')
| -rw-r--r-- | internal/commands/create.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/commands/create.go b/internal/commands/create.go index de71fd7..9372157 100644 --- a/internal/commands/create.go +++ b/internal/commands/create.go @@ -5,12 +5,12 @@ import ( "flag" "fmt" "os" + "time" "github.com/eugenetriguba/bolt/internal/configloader" "github.com/eugenetriguba/bolt/internal/models" "github.com/eugenetriguba/bolt/internal/repositories" "github.com/eugenetriguba/bolt/internal/storage" - "github.com/eugenetriguba/bolt/internal/util" "github.com/google/subcommands" ) @@ -64,7 +64,7 @@ func (cmd *CreateCmd) Execute( return subcommands.ExitFailure } - migration := models.NewMigration(&util.RealClock{}, cmd.message) + migration := models.NewMigration(time.Now(), cmd.message) err = migrationRepo.Create(migration) if err != nil { fmt.Fprintln(os.Stderr, err) |