Merge branch 'hogintegration' of toking/swd-be into master
This commit is contained in:
commit
0db45ce446
|
@ -9,7 +9,7 @@ const DEBUG = true;
|
||||||
|
|
||||||
router.param('personId', function(req, res, next, id) {
|
router.param('personId', function(req, res, next, id) {
|
||||||
req.personId = id;
|
req.personId = id;
|
||||||
let query = " Select * from person ";
|
let query = " Select * from v_person ";
|
||||||
query += " WHERE id = $1";
|
query += " WHERE id = $1";
|
||||||
|
|
||||||
if(DEBUG) console.log(query);
|
if(DEBUG) console.log(query);
|
||||||
|
@ -25,7 +25,7 @@ router.param('personId', function(req, res, next, id) {
|
||||||
|
|
||||||
/* GET recepies listing. */
|
/* GET recepies listing. */
|
||||||
router.get('/', function(req, res, next) {
|
router.get('/', function(req, res, next) {
|
||||||
let query = " Select * from person ";
|
let query = " Select * from v_person ";
|
||||||
|
|
||||||
if(DEBUG) console.log(query);
|
if(DEBUG) console.log(query);
|
||||||
req.db.query(query, (err, rs) => {
|
req.db.query(query, (err, rs) => {
|
||||||
|
|
Loading…
Reference in New Issue