From 098bcff5a4f1f5b7a160941ffe10977ff1476999 Mon Sep 17 00:00:00 2001 From: Jay Date: Sun, 26 Aug 2018 21:37:19 +0800 Subject: [PATCH] fix start amount --- route/api/twitch/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/route/api/twitch/index.js b/route/api/twitch/index.js index 07c897b..ba33981 100644 --- a/route/api/twitch/index.js +++ b/route/api/twitch/index.js @@ -175,9 +175,9 @@ r.get('/channel/:chid/opay/bar', async (c, n) => { text, values }) if (priceResult.rowCount > 0) { - setting.total = priceResult.rows[0].total + setting.total += priceResult.rows[0].total } else { - setting.total = 0 + setting.total += 0 } }