Skip to content

Commit

Permalink
Add mlink client filter to debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Dec 4, 2024
1 parent dab8768 commit b503aa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions v-api/src/context/magic_link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,14 +260,14 @@ where
signature: &str,
redirect_uri: &Url,
) -> ResourceResult<MagicLink, StoreError> {
tracing::debug!("Looking up magic link client");

let filter = MagicLinkFilter {
signature: Some(vec![signature.to_string()]),
redirect_uri: Some(vec![redirect_uri.to_string()]),
..Default::default()
};

tracing::debug!(?filter, "Looking up magic link client");

MagicLinkStore::list(&*self.storage, filter, &ListPagination::latest())
.await
.map(|mut results| results.pop())
Expand Down
2 changes: 1 addition & 1 deletion v-model/src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ pub trait OAuthClientRedirectUriStore {
) -> Result<Option<OAuthClientRedirectUri>, StoreError>;
}

#[derive(Default)]
#[derive(Debug, Default)]
pub struct MagicLinkFilter {
pub id: Option<Vec<TypedUuid<MagicLinkId>>>,
pub signature: Option<Vec<String>>,
Expand Down

0 comments on commit b503aa5

Please sign in to comment.