From 4518ef5107e114f5e17a722e94fd44786cbc6814 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 23 Jan 2020 20:37:30 +0100 Subject: [PATCH] fix bmo --- src/bugzilla/app.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/bugzilla/app.rs b/src/bugzilla/app.rs index e497a28..3fbba5f 100644 --- a/src/bugzilla/app.rs +++ b/src/bugzilla/app.rs @@ -44,7 +44,7 @@ pub struct Auth { #[derive(Deserialize, Debug)] pub struct BugZillaUser { - id: String, + id: i64, login: String, nick: Option, } @@ -112,9 +112,15 @@ fn auth( ); 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) })