mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix date comparison
This commit is contained in:
parent
87275fbb9c
commit
78b40dbddc
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ interface RssFeedRequest {
|
|||
subscriptionId: string
|
||||
userId: string
|
||||
feedUrl: string
|
||||
lastFetchedAt: Date
|
||||
lastFetchedAt: string
|
||||
}
|
||||
|
||||
function isRssFeedRequest(body: any): body is RssFeedRequest {
|
||||
|
|
@ -122,7 +122,7 @@ export const rssHandler = Sentry.GCPFunction.wrapHttpFunction(
|
|||
continue
|
||||
}
|
||||
|
||||
if (new Date(publishedAt) <= lastFetchedAt) {
|
||||
if (new Date(publishedAt) <= new Date(lastFetchedAt)) {
|
||||
console.log('Skipping old feed item', item.link)
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue