Skip to content

Commit

Permalink
fix: goctl goctl FindOne error
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkJoyMa authored and kevwan committed Nov 19, 2023
1 parent 2f8cffc commit 3990a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/goctl/model/sql/template/tpl/find-one.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (m *default{{.upperStartCamelObject}}Model) FindOne(ctx context.Context, {{
switch err {
case nil:
return &resp, nil
case sqlc.ErrNotFound:
case sqlx.ErrNotFound:
return nil, ErrNotFound
default:
return nil, err
Expand Down

0 comments on commit 3990a4d

Please sign in to comment.