hidden transaction tags are not allowed when importing transactions or using the add_transaction mcp tool

This commit is contained in:
MaysWind
2025-09-20 21:22:44 +08:00
parent 05b5cab12b
commit 1a1bb6077c
4 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ func (h *mcpAddTransactionToolHandler) Handle(c *core.WebContext, callToolReq *M
return nil, nil, err
}
tagMaps := services.GetTransactionTagService().GetTagNameMapByList(allTags)
tagMaps := services.GetTransactionTagService().GetVisibleTagNameMapByList(allTags)
tagIds = make([]int64, 0, len(addTransactionRequest.Tags))
for _, tagName := range addTransactionRequest.Tags {