Explorar o código

fix(goctl): model method FindOneCtx should be FindOne (#1656)

Fyn %!s(int64=3) %!d(string=hai) anos
pai
achega
17e0afeac0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/goctl/model/sql/template/delete.go

+ 1 - 1
tools/goctl/model/sql/template/delete.go

@@ -3,7 +3,7 @@ package template
 // Delete defines a delete template
 var Delete = `
 func (m *default{{.upperStartCamelObject}}Model) Delete(ctx context.Context, {{.lowerStartCamelPrimaryKey}} {{.dataType}}) error {
-	{{if .withCache}}{{if .containsIndexCache}}data, err:=m.FindOneCtx(ctx, {{.lowerStartCamelPrimaryKey}})
+	{{if .withCache}}{{if .containsIndexCache}}data, err:=m.FindOne(ctx, {{.lowerStartCamelPrimaryKey}})
 	if err!=nil{
 		return err
 	}