From 306edbb453714e0a2dbe16bfc354bc6b068fa90d Mon Sep 17 00:00:00 2001 From: Vytor Calixto <vytorcalixto@gmail.com> Date: Tue, 18 Apr 2017 08:41:47 -0300 Subject: [PATCH] Change table field for 'period' in /enrollment --- src/libs/routes/enrollment.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/libs/routes/enrollment.js b/src/libs/routes/enrollment.js index 7b35d744..ad14b9b7 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' } }); -- GitLab