Cancel le reward fulfill + Refresh token dans DB
This commit is contained in:
@@ -40,6 +40,7 @@ module.exports = rewardRedemption = (async (viewer_id, viewer_name, client_id, a
|
||||
|
||||
// Fullfil the reward redemption
|
||||
if (result.status === 'insert_entry' || result.status === 'update_entry') {
|
||||
/*
|
||||
await axios.patch(`https://api.twitch.tv/helix/channel_points/custom_rewards/redemptions?id=${id}&broadcaster_id=${broadcaster_id}&reward_id=${reward_id}`, {
|
||||
status: 'FULFILLED'
|
||||
}, {
|
||||
@@ -51,6 +52,7 @@ module.exports = rewardRedemption = (async (viewer_id, viewer_name, client_id, a
|
||||
}).then(response => {
|
||||
//return response.data.data[0].status
|
||||
}).catch(error => { console.error(error.response.data) })
|
||||
*/
|
||||
}
|
||||
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user