From 0e5370c7c497e3d76f7ee09d8bdabb47b9757b83 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Thu, 25 Dec 2025 18:17:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=A0=87=E7=AD=BEID?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91=EF=BC=8C=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E5=A4=84=E7=90=86=E7=A9=BA=E5=AD=97=E7=AC=A6=E4=B8=B2=E4=B8=8E?= =?UTF-8?q?UntaggedTagID=E7=9A=84=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/application/repository/chunk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/application/repository/chunk.go b/internal/application/repository/chunk.go index 1e9a8ab1..11b60ee2 100644 --- a/internal/application/repository/chunk.go +++ b/internal/application/repository/chunk.go @@ -652,7 +652,7 @@ func (r *chunkRepository) UpdateChunkFieldsByTagID( // Handle newTagID update (__untagged__ is stored as empty string) if newTagID != nil { - if *newTagID == types.UntaggedTagID { + if *newTagID == types.UntaggedTagID || *newTagID == "" { updates["tag_id"] = "" } else { updates["tag_id"] = *newTagID