From 773049835c99428561bbe61df07b88a8ac114b88 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sat, 13 Jun 2026 16:10:00 -0400 Subject: [PATCH] Almost --- src/caller/mod.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/caller/mod.rs b/src/caller/mod.rs index 6374623..d8bac0f 100644 --- a/src/caller/mod.rs +++ b/src/caller/mod.rs @@ -47,7 +47,7 @@ pub mod contact { pub message: String, // TODO: Should be this. Update code in textsender_models // pub data: Vec, - pub data: Vec, + pub data: Vec, } } @@ -90,10 +90,11 @@ pub mod contact { ..Default::default() }; match crate::repo::contact::insert(&pool, &contact).await { - Ok(_) => ( - axum::http::StatusCode::NOT_IMPLEMENTED, - axum::Json(response), - ), + Ok(_) => { + response.message = String::from(super::super::response::SUCCESSFUL); + + (axum::http::StatusCode::CREATED, axum::Json(response)) + } Err(err) => { eprintln!("Error: {err:?}"); response.message = String::from("Contact not created");