Skip to content

Commit 4518ef5

Browse files
committed
fix bmo
1 parent 912fa07 commit 4518ef5

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

src/bugzilla/app.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub struct Auth {
4444

4545
#[derive(Deserialize, Debug)]
4646
pub struct BugZillaUser {
47-
id: String,
47+
id: i64,
4848
login: String,
4949
nick: Option<String>,
5050
}
@@ -112,9 +112,15 @@ fn auth<T: AsyncCisClientTrait + 'static>(
112112
);
113113
get.get_user_by(&get_uid, &GetBy::UserId, None)
114114
.and_then(move |profile: Profile| {
115-
update_bugzilla(j.id, j.login, j.nick, profile, get.get_secret_store())
116-
.into_future()
117-
.map_err(Into::into)
115+
update_bugzilla(
116+
j.id.to_string(),
117+
j.login,
118+
j.nick,
119+
profile,
120+
get.get_secret_store(),
121+
)
122+
.into_future()
123+
.map_err(Into::into)
118124
})
119125
.map_err(Into::into)
120126
})

0 commit comments

Comments
 (0)