Skip to content

Commit

Permalink
Fix id
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardLindhout committed Jan 19, 2024
1 parent 23b0af5 commit fafecf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fafecf8

Please sign in to comment.