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,