fix missing callback

master
adb 3 years ago
parent 95f537024b
commit ef17b4467c

@ -15,7 +15,7 @@ export class MastodonHandler extends Mastodon{
}
this.post('media', { file: fs.createReadStream(mediaPath) }).then(resp => {
if (!resp.data.id){
this.postMedia(status, mediaPath, --retry);
this.postMedia(status, mediaPath, --retry, onError);
console.log("issue while uploading, retry")
return;
}

Loading…
Cancel
Save