From fafecf8b0dceb9f4cc1f8358ae912a2a0cb2cbc8 Mon Sep 17 00:00:00 2001 From: Richard Lindhout Date: Fri, 19 Jan 2024 10:02:52 +0100 Subject: [PATCH] Fix id --- cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/cache.go b/cache/cache.go index 371a2e5..0de29e8 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -654,7 +654,7 @@ func safeTrim(v string, trimSuffix string) string { } func foreignKeyToRel(v string) string { - return strings.TrimSuffix(strcase.ToCamel(v), "ID") + return strings.TrimSuffix(strings.TrimSuffix(strcase.ToCamel(v), "Id"), "ID") } func isStruct(t types.Type) bool {