Skip to content

Commit 3bea5fe

Browse files
committed
inactive support
1 parent d343e27 commit 3bea5fe

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2018"
66

77
[dependencies]
88
condvar_store = { git = "https://github.com/fiji-flo/condvar_store", version = "0.0.2" }
9-
cis_client = { git = "https://github.com/fiji-flo/cis_client-rust", version = "0.0.2" }
9+
cis_client = { git = "https://github.com/fiji-flo/cis_client-rust", version = "0.0.3", branch = "0.0.3" }
1010
cis_profile = { git = "https://github.com/fiji-flo/cis_profile-rust", version = "0.0.2", features = ["aws", "vendored"] }
1111
dino_park_gate = { git = "https://github.com/fiji-flo/dino-park-gate", version = "0.0.1" }
1212
actix = "0.7"

src/updater.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ pub fn update(
115115
n: &Notification,
116116
) -> Result<Value, Error> {
117117
info!("getting profile for: {}", &n.id);
118-
let profile = cis_client.get_user_by(&n.id, &GetBy::UserId, None)?;
118+
let profile = cis_client
119+
.get_user_by(&n.id, &GetBy::UserId, None)
120+
.or_else(|_| cis_client.get_inactive_user_by(&n.id, &GetBy::UserId, None))?;
119121
info!(
120122
"{} is active: {}",
121123
profile

0 commit comments

Comments
 (0)