fix(kb.gbapp): Fixing WHOLE WORD in Simple Search.

This commit is contained in:
Rodrigo Rodriguez 2021-08-13 13:01:36 -03:00
parent 26a78d59ef
commit 3ad3459e4b

View file

@ -207,7 +207,7 @@ export class KBService implements IGBKBService {
question = await GuaribasQuestion.findOne({ question = await GuaribasQuestion.findOne({
where: { where: {
instanceId: instanceId, instanceId: instanceId,
content: { [Op.like]: `%${text}%` } content: { [Op.like]: `%[^a-z]${text}[^a-z]%` }
} }
}); });
} }