Record Message Event Response endpoint (#22)
Reviewed-on: phoenix/textsender_api#22
This commit was merged in pull request #22.
This commit is contained in:
@@ -89,8 +89,9 @@ pub async fn get_with_user_id(
|
||||
async fn parse_row(
|
||||
row: &sqlx::postgres::PgRow,
|
||||
) -> Result<textsender_models::message::event::MessageEventResponse, sqlx::Error> {
|
||||
println!("Parsing MER");
|
||||
let id: uuid::Uuid = row.try_get("id")?;
|
||||
let response: String = row.try_get("response")?;
|
||||
let response: serde_json::Value = row.try_get("response")?;
|
||||
let status: String = row.try_get("status")?;
|
||||
let contact_id: uuid::Uuid = row.try_get("contact_id")?;
|
||||
let message_id: uuid::Uuid = row.try_get("message_id")?;
|
||||
|
||||
Reference in New Issue
Block a user