cargo fmt
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
use sqlx::Row;
|
use sqlx::Row;
|
||||||
|
|
||||||
pub async fn insert(
|
pub async fn insert(
|
||||||
|
|||||||
+10
-2
@@ -218,7 +218,7 @@ mod request {
|
|||||||
id: &uuid::Uuid,
|
id: &uuid::Uuid,
|
||||||
firstname: Option<&str>,
|
firstname: Option<&str>,
|
||||||
lastname: Option<&str>,
|
lastname: Option<&str>,
|
||||||
nickname: Option<&str>
|
nickname: Option<&str>,
|
||||||
) -> Result<axum::response::Response, std::convert::Infallible> {
|
) -> Result<axum::response::Response, std::convert::Infallible> {
|
||||||
let payload = serde_json::json!({
|
let payload = serde_json::json!({
|
||||||
"firstname": firstname,
|
"firstname": firstname,
|
||||||
@@ -405,7 +405,15 @@ async fn test_update_contact_names() {
|
|||||||
let new_nickname = Some(TEST_CONTACT_UPDATED_NICKNAME);
|
let new_nickname = Some(TEST_CONTACT_UPDATED_NICKNAME);
|
||||||
|
|
||||||
let contact_id = contact.id.unwrap();
|
let contact_id = contact.id.unwrap();
|
||||||
match request::update_contact_names(&app, &contact_id, new_firstname, new_lastname, new_nickname).await {
|
match request::update_contact_names(
|
||||||
|
&app,
|
||||||
|
&contact_id,
|
||||||
|
new_firstname,
|
||||||
|
new_lastname,
|
||||||
|
new_nickname,
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
{
|
||||||
Ok(response) => {
|
Ok(response) => {
|
||||||
let resp = util::get_resp_data::<
|
let resp = util::get_resp_data::<
|
||||||
textsender_api::caller::contact::response::UpdateContactNamesResponse,
|
textsender_api::caller::contact::response::UpdateContactNamesResponse,
|
||||||
|
|||||||
Reference in New Issue
Block a user