From cdd5e1de50cac23a15f5d7462a0473e55a2f32be Mon Sep 17 00:00:00 2001 From: Zbynek Rybicka Date: Thu, 30 Aug 2018 09:18:57 +0200 Subject: [PATCH] proc list --- lib/xapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xapi.js b/lib/xapi.js index 63db84c5a6..a8d94fe8ed 100644 --- a/lib/xapi.js +++ b/lib/xapi.js @@ -494,7 +494,7 @@ class Xapi { /**************** END : health and version ****************/ 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 results = await this.mysql.exec(query, params) res.status(200).json(results)