Got it working
This commit is contained in:
+1
-2
@@ -7,7 +7,7 @@ pub async fn insert(
|
||||
) -> Result<uuid::Uuid, sqlx::Error> {
|
||||
match sqlx::query(
|
||||
r#"
|
||||
INSERT INTO "contacts" (content, user_id)
|
||||
INSERT INTO "messages" (content, user_id)
|
||||
VALUES($1, $2) RETURNING id;
|
||||
"#,
|
||||
)
|
||||
@@ -23,4 +23,3 @@ pub async fn insert(
|
||||
Err(_) => Err(sqlx::Error::RowNotFound),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user