LibreChat/api/server/utils/import
Danny Avila fcaf55143d
🏷️ fix: Increment Tag Counters When Forking/Duplicating Conversations (#9737)
* fix: increment tag counters when forking/duplicating conversations

- Add bulkIncrementTagCounts to update existing tag counts in bulk
- Integrate tag count updates into importBatchBuilder.saveBatch() using Promise.all
- Update frontend mutations to directly update cache instead of invalidating queries
- Optimize bulkIncrementTagCounts to skip unnecessary database queries

Fixes issue where forked/duplicated conversations with bookmarks would not increment
tag counters, leading to negative counts when bookmarks were later removed.

* chore: reorder import statements for clarity in fork.spec.js
2025-09-19 22:02:09 -04:00
..
__data__ 🎥 feat: YouTube Tool (#5582) 2025-01-31 19:11:04 -05:00
fork.js feat: Implement Conversation Duplication & UI Improvements (#5036) 2024-12-18 11:10:34 -05:00
fork.spec.js 🏷️ fix: Increment Tag Counters When Forking/Duplicating Conversations (#9737) 2025-09-19 22:02:09 -04:00
importBatchBuilder.js 🏷️ fix: Increment Tag Counters When Forking/Duplicating Conversations (#9737) 2025-09-19 22:02:09 -04:00
importConversations.js 🔧 fix: Add missing configMiddleware to Convo Import Routes 2025-08-28 23:12:58 -04:00
importers-timestamp.spec.js refactor: Add Robust Timestamp handling for Conversation Imports (#8262) 2025-07-05 12:44:19 -04:00
importers.js 🔻 fix: Role and System Message Handling for ChatGPT Imports (#9524) 2025-09-09 13:51:26 -04:00
importers.spec.js 🔻 fix: Role and System Message Handling for ChatGPT Imports (#9524) 2025-09-09 13:51:26 -04:00
index.js ℹ️ refactor: Remove use of Agenda for Conversation Imports (#3024) 2024-06-10 13:00:34 -04:00