mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
search: helper fn for invalid convoId strings
This commit is contained in:
parent
a5cf2f9148
commit
75be4d9722
1 changed files with 8 additions and 0 deletions
8
api/lib/utils/misc.js
Normal file
8
api/lib/utils/misc.js
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
const cleanUpPrimaryKeyValue = (value) => {
|
||||||
|
// For Bing convoId handling
|
||||||
|
return value.replace(/--/g, '-');
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
cleanUpPrimaryKeyValue,
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue