search: helper fn for invalid convoId strings
This commit is contained in:
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,
|
||||
}
|
||||
Reference in New Issue
Block a user