mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-01 23:31:51 +01:00
🔖 fix: URI Encoding for Bookmarks (#4172)
* fix: never defined AcceptTermsMutationOptions * fix: lack of URI encoding in tag mutations
This commit is contained in:
parent
be44caaab1
commit
44458d3832
4 changed files with 14 additions and 4 deletions
|
|
@ -61,7 +61,8 @@ router.post('/', async (req, res) => {
|
|||
*/
|
||||
router.put('/:tag', async (req, res) => {
|
||||
try {
|
||||
const tag = await updateConversationTag(req.user.id, req.params.tag, req.body);
|
||||
const decodedTag = decodeURIComponent(req.params.tag);
|
||||
const tag = await updateConversationTag(req.user.id, decodedTag, req.body);
|
||||
if (tag) {
|
||||
res.status(200).json(tag);
|
||||
} else {
|
||||
|
|
@ -81,7 +82,8 @@ router.put('/:tag', async (req, res) => {
|
|||
*/
|
||||
router.delete('/:tag', async (req, res) => {
|
||||
try {
|
||||
const tag = await deleteConversationTag(req.user.id, req.params.tag);
|
||||
const decodedTag = decodeURIComponent(req.params.tag);
|
||||
const tag = await deleteConversationTag(req.user.id, decodedTag);
|
||||
if (tag) {
|
||||
res.status(200).json(tag);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue