Enrich external API failure audit metadata
This commit is contained in:
@@ -98,7 +98,10 @@ pub fn should_rebind_orphan_work_owner(
|
||||
return false;
|
||||
}
|
||||
|
||||
!matches!(auth_user_service.get_user_by_id(&owner_user_id), Ok(Some(_)))
|
||||
!matches!(
|
||||
auth_user_service.get_user_by_id(&owner_user_id),
|
||||
Ok(Some(_))
|
||||
)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
@@ -137,6 +140,9 @@ mod tests {
|
||||
|
||||
assert!(should_rebind_orphan_work_owner(&service, ""));
|
||||
assert!(should_rebind_orphan_work_owner(&service, "user_missing"));
|
||||
assert!(!should_rebind_orphan_work_owner(&service, ORPHAN_WORK_OWNER_USER_ID));
|
||||
assert!(!should_rebind_orphan_work_owner(
|
||||
&service,
|
||||
ORPHAN_WORK_OWNER_USER_ID
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user