From 5440c81dbd090bbd6e0897e7b47c861f6483ecca Mon Sep 17 00:00:00 2001 From: Peter Ott <33352167+ottpeter@users.noreply.github.com> Date: Wed, 17 Jan 2024 21:40:18 +0100 Subject: [PATCH] fix: allow feed index to be 0 when downloading (#897) --- src/feed/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/feed/index.ts b/src/feed/index.ts index 0b94e9b4..2ff4ca31 100644 --- a/src/feed/index.ts +++ b/src/feed/index.ts @@ -125,7 +125,7 @@ export function makeFeedReader( owner, topic, async download(options?: FeedUpdateOptions): Promise { - if (!options?.index) { + if (!options?.index && options?.index !== 0 { return fetchLatestFeedUpdate(requestOptions, owner, topic, { ...options, type }) }