Skip to content

Commit

Permalink
fix(user-presence): broken redis query (#802)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
NathanFlurry committed May 31, 2024
1 parent 831044d commit a899774
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions svc/pkg/user-presence/ops/get/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,18 @@ async fn handle(
);
}

pipe.query_async::<_, Vec<(
Option<String>,
Option<String>,
Option<String>,
Option<String>,
Option<String>,
)>>(&mut redis)
pipe.query_async::<_, Vec<
Vec<(
Option<String>,
Option<String>,
Option<String>,
Option<String>,
Option<String>,
)>,
>>(&mut redis)
.await?
.into_iter()
.flatten()
.map(
|(user_id, game_id, message, public_metadata, friend_metadata)| {
if user_id.is_none() {
Expand Down Expand Up @@ -87,9 +90,10 @@ async fn handle(
);
}

pipe.query_async::<_, Vec<(Option<String>, Option<i64>, Option<i64>)>>(&mut redis)
pipe.query_async::<_, Vec<Vec<(Option<String>, Option<i64>, Option<i64>)>>>(&mut redis)
.await?
.into_iter()
.flatten()
.map(|(user_id, update_ts, status)| {
if user_id.is_none() {
return GlobalResult::Ok(None);
Expand Down

0 comments on commit a899774

Please sign in to comment.