Skip to content

Commit

Permalink
Merge pull request #59 from RobinLindhout/patch-1
Browse files Browse the repository at this point in the history
Fix right sqlboiler casing for name in convert
  • Loading branch information
robinlindhout authored Jan 25, 2024
2 parents fafecf8 + 965ad63 commit bf876e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template_files/generated_sort.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import (
{{- if eq $field.Name "Sort" -}}
var {{ $field.Enum.Name }}Column = map[{{ $.Frontend.PackageName }}.{{$field.Enum.Name}}]string{
{{- range $value := $field.Enum.Values}}
{{ $.Frontend.PackageName }}.{{ $field.Enum.Name|go }}{{ .Name|go }}: {{ $.Backend.PackageName }}.{{ $model.BoilerModel.Name }}Columns.{{ $value.Name|go }},
{{ $.Frontend.PackageName }}.{{ $field.Enum.Name|go }}{{ .Name|go }}: {{ $.Backend.PackageName }}.{{ $model.BoilerModel.Name }}Columns.{{ $value.BoilerEnumValue.Name|go }},
{{- end }}
}

Expand Down

0 comments on commit bf876e8

Please sign in to comment.