Skip to content

Commit

Permalink
Fix extend template
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Dec 31, 2024
1 parent def4abd commit c2ada99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit c2ada99

Please sign in to comment.