Browse Source

proc list

pull/122/head
Zbynek Rybicka 6 years ago committed by Jeremy Nagel
parent
commit
cdd5e1de50
  1. 2
      lib/xapi.js

2
lib/xapi.js

@ -494,7 +494,7 @@ class Xapi {
/**************** END : health and version ****************/ /**************** END : health and version ****************/
async proc(req, res) { async proc(req, res) {
let query = 'SELECT table_name AS resource FROM information_schema.routines WHERE table_schema = ? '; let query = 'SELECT routine_name AS resource FROM information_schema.routines WHERE routine_schema = ? ';
let params = [this.config.database]; let params = [this.config.database];
let results = await this.mysql.exec(query, params) let results = await this.mysql.exec(query, params)
res.status(200).json(results) res.status(200).json(results)

Loading…
Cancel
Save