mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #2496 from omnivore-app/fix/rss-invalid-request-body
fix invalid request body in rss handler
This commit is contained in:
commit
65df023dd6
1 changed files with 1 additions and 5 deletions
|
|
@ -8,17 +8,13 @@ import { CONTENT_FETCH_URL, createCloudTask } from './task'
|
|||
|
||||
interface RssFeedRequest {
|
||||
subscriptionId: string
|
||||
userId: string
|
||||
feedUrl: string
|
||||
lastFetchedAt: string
|
||||
}
|
||||
|
||||
function isRssFeedRequest(body: any): body is RssFeedRequest {
|
||||
return (
|
||||
'subscriptionId' in body &&
|
||||
'userId' in body &&
|
||||
'feedUrl' in body &&
|
||||
'lastFetchedAt' in body
|
||||
'subscriptionId' in body && 'feedUrl' in body && 'lastFetchedAt' in body
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue