From 33b7f6f6312fcf226e8b7dc0f2b5c3143a0ade80 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 12 Oct 2022 15:18:22 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=B5=8C=E5=85=A5=E5=9D=97=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=9D=A2=E5=8C=85=E5=B1=91=20https://github.com/siyua?= =?UTF-8?q?n-note/siyuan/issues/2985?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/search.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/model/search.go b/kernel/model/search.go index 61cf6bb4e..2ea6ebc05 100644 --- a/kernel/model/search.go +++ b/kernel/model/search.go @@ -39,8 +39,8 @@ import ( ) type EmbedBlock struct { - Block *Block `json:"block"` - BlockPath []*BlockPath `json:"blockPath"` + Block *Block `json:"block"` + BlockPaths []*BlockPath `json:"blockPaths"` } func SearchEmbedBlock(stmt string, excludeIDs []string, headingMode int) (ret []*EmbedBlock) { @@ -81,8 +81,8 @@ func searchEmbedBlock(stmt string, excludeIDs []string, headingMode int) (ret [] continue } ret = append(ret, &EmbedBlock{ - Block: block, - BlockPath: blockPaths, + Block: block, + BlockPaths: blockPaths, }) }