Skip to content

Commit

Permalink
updated dep
Browse files Browse the repository at this point in the history
  • Loading branch information
adranwit committed Jul 30, 2024
1 parent af07687 commit 36f552c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion repository/codegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ func (c *Component) adjustStructField(embedURI string, embeds map[string]string,
if value != "" && generateContract {
name := *typeName
setter.SetStringIfEmpty(&name, aField.Name)
key := text.CaseFormatUpperCamel.Format(name, text.CaseFormatLowerUnderscore) + ".sql"
key := text.CaseFormatUpperCamel.Format(name, text.CaseFormatLowerUnderscore)
key = strings.ReplaceAll(key, ".", "")
key += ".sql"
value = c.View.Resource().ReverseSubstitutes(value)
embeds[key] = value
fieldTag += fmt.Sprintf(` sql:"uri=%v/`+key+`" `, embedURI)
Expand Down

0 comments on commit 36f552c

Please sign in to comment.