Cancel le reward fulfill + Refresh token dans DB

This commit is contained in:
Zachary Guénot
2023-06-14 18:43:11 +02:00
parent 1478d6ded3
commit bcb1427148
4 changed files with 62 additions and 8 deletions

View File

@@ -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