From d2cfcac05f11f5a2f33828080fc82ba571b28a3d Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 22 Aug 2018 22:11:43 +0800 Subject: [PATCH] change get opay setting api response struct --- route/api/twitch/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/route/api/twitch/index.js b/route/api/twitch/index.js index 4e2d33c..63f8142 100644 --- a/route/api/twitch/index.js +++ b/route/api/twitch/index.js @@ -108,8 +108,9 @@ r.get('/channel/:chid/opay/setting', checkSession, getChannelList, hasChannel('c text, values }) + c.obj = resObject('Success', { - list: result.rows + setting: result.rowCount === 0 ? {} : result.rows[0] }) })