Fix extend template

This commit is contained in:
世界 2024-12-31 15:53:51 +08:00
parent def4abd15b
commit c2ada999ac
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -45,7 +45,7 @@ func extendTemplate(ctx context.Context, rawTemplates []option.Template, root, c
if err != nil {
return option.Template{}, E.Cause(err, "initialize template[", current.Name, "]: merge extended template: ", current.Extend)
}
newTemplate, err := json.UnmarshalExtended[option.Template](newRawTemplate)
newTemplate, err := json.UnmarshalExtendedContext[option.Template](ctx, newRawTemplate)
if err != nil {
return option.Template{}, E.Cause(err, "initialize template[", current.Name, "]: unmarshal extended template: ", current.Extend)
}