Skip to content
Snippets Groups Projects
Commit 9ce0c87a authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Fix adm dependency detailed tables in school and class

parent 505b74d6
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -63,7 +63,7 @@ classApp.get('/adm_dependency', (req, res, next) => {
}, query, response('adm_dependency'));
classApp.get('/adm_dependency_detailed', (req, res, next) => {
req.sql.from('dependencia_adm')
req.sql.from('dependencia_adm_priv')
.field('id', 'id')
.field('nome', 'name');
next();
......
......@@ -60,7 +60,7 @@ schoolApp.get('/adm_dependency', (req, res, next) => {
}, query, response('adm_dependency'));
schoolApp.get('/adm_dependency_detailed', (req, res, next) => {
req.sql.from('dependencia_adm')
req.sql.from('dependencia_adm_priv')
.field('id', 'id')
.field('nome', 'name');
next();
......@@ -494,7 +494,7 @@ rqfCount.addField({
}
}).addValue({
name: 'adm_dependency_detailed',
table: 'dependencia_adm',
table: 'dependencia_adm_priv',
tableField: 'nome',
resultField: 'adm_dependency_detailed_name',
where: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment