mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-11 00:33:40 +00:00
PUT /api/tags/:tag renamed the tag first and ran the forced-retention cascade with the new tag afterwards. A cascade failure returned 500 with the rename already committed, and a retried PUT /:oldTag hit the 404 path because the old tag no longer exists, so the tagged conversations' messages, shares, and files could never be backfilled. Run the cascade with the old tag before the rename, mirroring the DELETE route: the old tag selects the same conversations the renamed tag will carry, enforcing on a nonexistent tag is a no-op, and a failed rename now retries cleanly with retention already applied. |
||
|---|---|---|
| .. | ||
| app | ||
| cache | ||
| config | ||
| db | ||
| models | ||
| server | ||
| strategies | ||
| test | ||
| utils | ||
| jest.config.js | ||
| jsconfig.json | ||
| package.json | ||
| typedefs.js | ||