Skip to content

Commit

Permalink
fix crud methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sxwebdev authored May 5, 2024
1 parent 88e87a6 commit a6bf58f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/pgxgen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/tkcrm/pgxgen/pkg/logger"
)

var version = "v0.3.1"
var version = "v0.3.2"

func main() {
logger := logger.New()
Expand Down
2 changes: 1 addition & 1 deletion internal/crud/crud.go
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ func (s *crud) getMethodName(cfg config.CrudParams, methodType config.MethodType
methodName = fmt.Sprintf("%s %s", methodType.String(), tableName)
}

methodName = stringy.New(methodName).CamelCase().Get()
methodName = stringy.New(methodName).CamelCase().UcFirst()

if !slices.Contains([]config.MethodType{METHOD_FIND, METHOD_TOTAL}, methodType) {
if strings.HasSuffix(methodName, "s") {
Expand Down

0 comments on commit a6bf58f

Please sign in to comment.