|
@@ -45,12 +45,7 @@ async fn um_index(req: Request) -> tide::Result<tide::Response> {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- let user = realm
|
|
|
- .users
|
|
|
- .with(schema::UserID::default(), user_id)
|
|
|
- .first()
|
|
|
- .get()?
|
|
|
- .unwrap();
|
|
|
+ let user = realm.users.with_id(user_id).first().get()?.unwrap();
|
|
|
|
|
|
let template_data = generate_template_data(&realm, &user)?;
|
|
|
|
|
@@ -86,12 +81,7 @@ async fn um_update(mut req: Request) -> tide::Result<tide::Response> {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- let user = realm
|
|
|
- .users
|
|
|
- .with(schema::UserID::default(), user_id)
|
|
|
- .first()
|
|
|
- .get()?
|
|
|
- .unwrap();
|
|
|
+ let user = realm.users.with_id(user_id).first().get()?.unwrap();
|
|
|
|
|
|
log::info!("processing update request...");
|
|
|
|