fix(scim): improve get_user for scim
This commit is contained in:
@@ -143,7 +143,7 @@ pub async fn get_users(
|
||||
Extension(db): Extension<DB>,
|
||||
Query(query): Query<ScimQuery>,
|
||||
) -> Result<JsonScim<serde_json::Value>> {
|
||||
let mut sqlb = SqlBuilder::select_from("usr")
|
||||
let mut sqlb = SqlBuilder::select_from("password")
|
||||
.fields(&["email"])
|
||||
.limit(query.count.unwrap_or(100000))
|
||||
.offset(query.startIndex.map(|x| x - 1).unwrap_or(0))
|
||||
|
||||
@@ -133,7 +133,7 @@ pub async fn pip_compile(
|
||||
args.extend(["--extra-index-url", url, "--no-emit-index-url"]);
|
||||
}
|
||||
if let Some(url) = PIP_INDEX_URL.as_ref() {
|
||||
args.extend(["--index-url", url]);
|
||||
args.extend(["--index-url", url, "--no-emit-index-url"]);
|
||||
}
|
||||
if let Some(host) = PIP_TRUSTED_HOST.as_ref() {
|
||||
args.extend(["--trusted-host", host]);
|
||||
|
||||
Reference in New Issue
Block a user