Skip to content

Commit

Permalink
fix template
Browse files Browse the repository at this point in the history
  • Loading branch information
czyt committed Oct 12, 2023
1 parent 37f9451 commit 4788c3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/kilot/kilot.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func main() {
},
},
Name: "kilot",
Version: "0.1.18",
Version: "0.1.19",
EnableBashCompletion: true,
Commands: []*cli.Command{
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func ({{.ModelIdentifier}} {{.ModelNameLowCase}}DataRepo) ReplaceOne{{.ModelName
}

func ({{.ModelIdentifier}} {{.ModelNameLowCase}}DataRepo) ReplaceOne{{.ModelName}}ById(ctx context.Context, id string, data *{{.BizPkg}}.{{.ModelName}}, opts ...*options.ReplaceOptions) (result *mongo.UpdateResult, err error) {
recordId, err := t.model.PrepareID(id)
recordId, err := {{.ModelIdentifier}}.model.PrepareID(id)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 4788c3a

Please sign in to comment.