fix: 修复标签ID处理逻辑,正确处理空字符串与UntaggedTagID的判断条件
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user