From 582882b4b06fadc6e1966c67869bad16a95517c9 Mon Sep 17 00:00:00 2001 From: Jaid Date: Sat, 14 Dec 2019 10:09:44 +0100 Subject: [PATCH] fix: Fixed retry logic Signed-off-by: Jaid --- src/index.js | 2 +- webpack.config.babel.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 57f84ae..c796064 100644 --- a/src/index.js +++ b/src/index.js @@ -38,7 +38,7 @@ const fetchUploadsForPath = async (channelPath, options = {}) => { title: entityDecoder.decode(match.subMatches[1]), })) } - if (retries >= 1) { + if (retries <= 1) { return fetchJob() } diff --git a/webpack.config.babel.js b/webpack.config.babel.js index 0934198..0bca523 100644 --- a/webpack.config.babel.js +++ b/webpack.config.babel.js @@ -1,4 +1,6 @@ import configure from "webpack-config-jaid" export default configure({ + publishimo: true, + documentation: true, }) \ No newline at end of file