From 3e5e2487afcc5bac9b79e30639369dd6a98fe5c3 Mon Sep 17 00:00:00 2001 From: alexmorenograu <61759297+alexmorenograu@users.noreply.github.com> Date: Mon, 15 Mar 2021 10:19:12 +0100 Subject: [PATCH] names select --- db/selectDB.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/selectDB.js b/db/selectDB.js index 5900c49..51f7db1 100644 --- a/db/selectDB.js +++ b/db/selectDB.js @@ -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