diff --git a/lib/api.js b/lib/api.js index acb65b0..f9920ef 100644 --- a/lib/api.js +++ b/lib/api.js @@ -18,7 +18,7 @@ const gistClient = axios.create({ } }) -async function tweet(content, encodedImage) { +function tweet(content, encodedImage) { const processedData = encodedImage.split(',')[1] return client @@ -70,6 +70,6 @@ function checkIfRateLimited(err) { export default { client, getGist, - tweet: debounce(tweet, ms('5s'), { leading: true, trailing: true }), - image: debounce(image, ms('5s'), { leading: true, trailing: true }) + tweet: debounce(tweet, ms('5s'), { leading: true, trailing: false }), + image: debounce(image, ms('5s'), { leading: true, trailing: false }) }