From 754c9f823f1f33bc3a300805b0415038d89a1c3b Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 23 Aug 2018 00:10:17 +0800 Subject: [PATCH] fix query --- 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 63f8142..cdc584a 100644 --- a/route/api/twitch/index.js +++ b/route/api/twitch/index.js @@ -124,7 +124,7 @@ r.put('/channel/:chid/opay/setting', checkSession, getChannelList, hasChannel('c let ed = new Date(ets) let text = `insert into "public"."donate_setting" ("twitch", "start_date", "end_date", "target_amount", "title") values - ($1, $2, $3, $4, $5) returning * + ($1, $2, $3, $4, $5) on CONFLICT ("twitch") DO UPDATE set "start_date" = $2,