diff --git a/route/api/twitch/index.js b/route/api/twitch/index.js index 1fdd90a..f9b9baa 100644 --- a/route/api/twitch/index.js +++ b/route/api/twitch/index.js @@ -161,7 +161,7 @@ r.get('/channel/:chid/opay/bar', async (c, n) => { if (result.rowCount > 0) { text = `select sum(list.price) as total from "public"."opay_donate_list" list - left join "public"."twitch" tw + left join "public"."twitch_channel" tw on tw.opayid = list.opayid where tw.opayid != ''