Skip to content

Commit

Permalink
fix bmo
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Jan 23, 2020
1 parent 912fa07 commit 4518ef5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/bugzilla/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub struct Auth {

#[derive(Deserialize, Debug)]
pub struct BugZillaUser {
id: String,
id: i64,
login: String,
nick: Option<String>,
}
Expand Down Expand Up @@ -112,9 +112,15 @@ fn auth<T: AsyncCisClientTrait + 'static>(
);
get.get_user_by(&get_uid, &GetBy::UserId, None)
.and_then(move |profile: Profile| {
update_bugzilla(j.id, j.login, j.nick, profile, get.get_secret_store())
.into_future()
.map_err(Into::into)
update_bugzilla(
j.id.to_string(),
j.login,
j.nick,
profile,
get.get_secret_store(),
)
.into_future()
.map_err(Into::into)
})
.map_err(Into::into)
})
Expand Down

0 comments on commit 4518ef5

Please sign in to comment.