search: helper fn for invalid convoId strings

This commit is contained in:
Daniel Avila 2023-03-22 01:31:49 -04:00
parent a5cf2f9148
commit 75be4d9722

8
api/lib/utils/misc.js Normal file
View file

@ -0,0 +1,8 @@
const cleanUpPrimaryKeyValue = (value) => {
// For Bing convoId handling
return value.replace(/--/g, '-');
}
module.exports = {
cleanUpPrimaryKeyValue,
}