mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #3128 from omnivore-app/fix/save-following
item_id and saved_at are optional in the post request
This commit is contained in:
commit
81f139e4fd
1 changed files with 3 additions and 5 deletions
|
|
@ -9,7 +9,7 @@ export interface SaveFollowingItemRequest {
|
|||
userIds: string[]
|
||||
title: string
|
||||
url: string
|
||||
itemId: string
|
||||
itemId?: string
|
||||
addedToFollowingBy: string
|
||||
addedToFollowingFrom: SourceOfFollowing
|
||||
author?: string
|
||||
|
|
@ -18,7 +18,7 @@ export interface SaveFollowingItemRequest {
|
|||
previewContent?: string
|
||||
previewContentType?: string
|
||||
publishedAt?: Date
|
||||
savedAt: Date
|
||||
savedAt?: Date
|
||||
}
|
||||
|
||||
function isSaveFollowingItemRequest(
|
||||
|
|
@ -29,9 +29,7 @@ function isSaveFollowingItemRequest(
|
|||
'addedToFollowingBy' in body &&
|
||||
'addedToFollowingFrom' in body &&
|
||||
'url' in body &&
|
||||
'itemId' in body &&
|
||||
'title' in body &&
|
||||
'savedAt' in body
|
||||
'title' in body
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue