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 5dbf0aeec6
commit 3ff8d293b8

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]%` }
} }
}); });
} }