From 51b1bbb153d7decc9d946a1c70121b72e5004484 Mon Sep 17 00:00:00 2001 From: Arjen de Vos Date: Wed, 10 Apr 2024 23:34:06 +0200 Subject: [PATCH] fix ambigious id --- template_files/generated_sort.gotpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template_files/generated_sort.gotpl b/template_files/generated_sort.gotpl index 54e3593..9878337 100644 --- a/template_files/generated_sort.gotpl +++ b/template_files/generated_sort.gotpl @@ -91,7 +91,7 @@ import ( for _, cursorValue := range boilergql.CursorStringToValues(cursor) { column, value := {{ .BoilerModel.Name }}SortValueFromCursorValue(cursorValue) if column != "" && value != nil { - columns = append(columns, dm.TableNames.{{ .BoilerModel.TableName }}+"."+column) + columns = append(columns, dm.{{- .TableNameResolverName }}.{{ .BoilerModel.TableName }}+"."+column) values = append(values, value) } }