feat: user routing

feat:  contact
This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-12-14 03:11:39 +03:00
parent d0187b1b42
commit aa679b5a05
18 changed files with 304 additions and 64 deletions

View file

@ -46,12 +46,12 @@ pub async fn update(
sqlx::query_as!(
Post,
r#"
UPDATE "post" SET poster_id = $1, post = $2 WHERE "creation_time" = $3
UPDATE "post" SET poster_id = $2, post = $3 WHERE "creation_time" = $1
RETURNING *
"#,
creation_time,
poster_id,
post,
creation_time
post
)
.fetch_one(database_connection)
.await