Skip to content

Commit

Permalink
FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
fisx committed Jul 17, 2023
1 parent 62deab0 commit 0bbc4dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/wire-api/src/Wire/API/Routes/Internal/Brig.hs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ type AccountAPI =
"iGetRichInfoMulti"
( "users"
:> "rich-info"
:> Capture "ids" (CommaSeparatedList UserId)
:> QueryParam' '[Optional, Strict] "ids" (CommaSeparatedList UserId)
:> Get '[Servant.JSON] [(UserId, RichInfo)]
)
:<|> Named
Expand Down
4 changes: 2 additions & 2 deletions services/brig/src/Brig/API/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -789,8 +789,8 @@ updateClientLastActive u c = do
getRichInfoH :: UserId -> (Handler r) RichInfo
getRichInfoH uid = RichInfo . fromMaybe mempty <$> lift (wrapClient $ API.lookupRichInfo uid)

getRichInfoMultiH :: CommaSeparatedList UserId -> (Handler r) [(UserId, RichInfo)]
getRichInfoMultiH (CommaSeparatedList uids) =
getRichInfoMultiH :: Maybe (CommaSeparatedList UserId) -> (Handler r) [(UserId, RichInfo)]
getRichInfoMultiH (maybe [] fromCommaSeparatedList -> uids) =
lift $ wrapClient $ API.lookupRichInfoMultiUsers uids

updateHandleH :: UserId -> HandleUpdate -> (Handler r) NoContent
Expand Down

0 comments on commit 0bbc4dc

Please sign in to comment.