From ead2d6c11af1b5f61cd018814974ea6e437748f2 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 12 Sep 2018 20:37:47 +0800 Subject: [PATCH] update --- route/api/twitch/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/api/twitch/index.js b/route/api/twitch/index.js index ba33981..7bd9b59 100644 --- a/route/api/twitch/index.js +++ b/route/api/twitch/index.js @@ -175,7 +175,7 @@ r.get('/channel/:chid/opay/bar', async (c, n) => { text, values }) if (priceResult.rowCount > 0) { - setting.total += priceResult.rows[0].total + setting.total += toInt(priceResult.rows[0].total, 0, 0) } else { setting.total += 0 }