From c2ada999ac8d0b6fc694ae109db7ad5049f7f472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 31 Dec 2024 15:53:51 +0800 Subject: [PATCH] Fix extend template --- template/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/manager.go b/template/manager.go index f2f5c81..7a46b8c 100644 --- a/template/manager.go +++ b/template/manager.go @@ -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) }