diff --git a/src/libs/routes/enrollment.js b/src/libs/routes/enrollment.js index 7b35d74429a191f7934fda18278da5aa6c9cf2c7..ad14b9b741ea3eb1234fc0e979a46f7b117827fa 100644 --- a/src/libs/routes/enrollment.js +++ b/src/libs/routes/enrollment.js @@ -268,18 +268,13 @@ rqf.addField({ } }).addValue({ name: 'period', - table: 'turma', - tableField: 'turno', + table: 'matricula', + tableField: 'turma_turno_id', resultField: 'period_id', where: { relation: '=', type: 'integer', - field: 'turno' - }, - join: { - primary: 'id', - foreign: 'turma_id', - foreignTable: 'matricula' + field: 'turma_turno_id' } });