Commit 1a600746 authored by Miguel Angelo Salerno's avatar Miguel Angelo Salerno
Browse files

add table to sql select

parent 1c93367e
Pipeline #24659 failed with stage
in 3 minutes and 12 seconds
......@@ -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')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment