fix: 修复标签ID处理逻辑,正确处理空字符串与UntaggedTagID的判断条件

main
wizardchen 2025-12-25 18:17:12 +08:00 committed by lyingbug
parent a025ebe7fb
commit 0e5370c7c4
1 changed files with 1 additions and 1 deletions

View File

@ -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