fix(kb.gbapp): Skips blank answers lines.

This commit is contained in:
Rodrigo Rodriguez 2022-08-26 18:37:35 -03:00
parent 4ab4476645
commit 004cc8fef5

View file

@ -230,13 +230,13 @@ export class KBService implements IGBKBService {
});
}
if (!question) {
// TODO: Solve this compilation error.
// question = await GuaribasQuestion.findOne({
// where: {
// instanceId: instanceId,
// content: { [Op.eq]: `${text}` }
// }
// });
let where = {
instanceId: instanceId,
content: { [Op.eq]: `${text}` }
}
question = await GuaribasQuestion.findOne({
where: where
});
}
if (question !== null) {