Skip to content
Snippets Groups Projects
Commit 1a600746 authored by Miguel Angelo Salerno's avatar Miguel Angelo Salerno
Browse files

add table to sql select

parent 1c93367e
No related branches found
No related tags found
1 merge request!309Merge new updates into master
Pipeline #24659 failed
......@@ -136,6 +136,7 @@ cubApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
if (req.filter.size || req.filter.dims) {
if ('state' in req.filter || 'state' in req.dims) {
req.sql.from('cub')
.from('estado')
.field('cub.estado_id', 'cod_uf')
.field('estado.sigla', 'sigla_uf')
.field('cub.tipo_preco', 'tipo_preco')
......
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