names select

This commit is contained in:
alexmorenograu 2021-03-15 10:19:12 +01:00
parent f976cd2966
commit 3e5e2487af
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ const con = require('./connect')
var x;
function select(collectionFk, callback){
let consSql = `SELECT t.id, c.name AS client, am.name AS agencia
let consSql = `SELECT t.id AS ticket, c.name AS Client, am.name AS Agency, tc.level
FROM ticketCollection tc
JOIN ticket t ON t.id = tc.ticketFk JOIN client c ON t.clientFk = c.id
JOIN agencyMode am ON am.id = t.agencyModeFk