Skip to content

Commit

Permalink
fix(generator): adapt unique field casing
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen committed Dec 21, 2023
1 parent 5510c92 commit e72ea91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generator/templates/query.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@

{{/* composite keys for FindUnique */}}
{{ range $unique := $model.CompoundKeys }}
func ({{ $nsQuery }}) {{ $unique.Name.GoCase }}(
func ({{ $nsQuery }}) {{ $unique.Name }}(
{{- range $f := $unique.Fields }}
_{{- $f.GoLowerCase }} {{ $model.Name.GoCase }}WithPrisma{{ $f.GoCase }}WhereParam,
_{{- $f.GoLowerCase }} {{ $model.Name }}WithPrisma{{ $f.GoCase }}WhereParam,
{{ end -}}
) {{ $model.Name.GoCase }}EqualsUniqueWhereParam {
) {{ $model.Name }}EqualsUniqueWhereParam {
var fields []builder.Field

{{ range $f := $unique.Fields }}
Expand Down

0 comments on commit e72ea91

Please sign in to comment.