fix(card): Use correct template endpoints
This commit is contained in:
@@ -84,7 +84,8 @@ func (t *DefaultTemplater) GenerateBarcode(code int, format string, prefix strin
|
||||
|
||||
func (t *DefaultTemplater) StringToTemplate(templateString string) (*template.Template, error) {
|
||||
return template.New("template").Funcs(template.FuncMap{
|
||||
"barcode": t.GenerateBarcode,
|
||||
"barcode": t.GenerateBarcode,
|
||||
"sponsorLogo": func(id int) string { return "a" },
|
||||
}).Parse(templateString)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user