From ef17b4467c9b0d20efa1dadf30f608bb88634975 Mon Sep 17 00:00:00 2001 From: adb Date: Fri, 26 Feb 2021 00:51:33 +0100 Subject: [PATCH] fix missing callback --- node_app/mastodonHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_app/mastodonHandler.js b/node_app/mastodonHandler.js index aec7486..2741696 100644 --- a/node_app/mastodonHandler.js +++ b/node_app/mastodonHandler.js @@ -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; }