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] }) })