Skip to content

Commit

Permalink
Ids are Ints
Browse files Browse the repository at this point in the history
  • Loading branch information
emhoracek committed Apr 22, 2021
1 parent 8808e4c commit 4c83854
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Web/Offset/Feed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ getAuthorViaReq wp v =

getAuthorsViaReq :: Wordpress b -> Object -> IO [WPPerson]
getAuthorsViaReq wp v =
do let mAuthorId = parseMaybe (\obj -> obj .: "authors") v :: Maybe [T.Text]
do let mAuthorId = parseMaybe (\obj -> obj .: "authors") v :: Maybe [Int]
case mAuthorId of
Nothing -> return []
Just authorIds ->
do let authList = map (\id -> ("include[]", id)) authorIds
do let authList = map (\id -> ("include[]", tshow id)) authorIds
eRespError <- cachingGetRetry wp (EndpointKey ("wp/v2/authors") authList)
case eRespError of
Left _ -> return []
Expand Down

0 comments on commit 4c83854

Please sign in to comment.