This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-12-09 15:18:32 +03:00
parent c6d3246f71
commit a93ed4e9aa
14 changed files with 228 additions and 19 deletions

View file

@ -35,7 +35,7 @@ pub async fn read(
}
pub async fn update(
id: i64,
id: &i64,
name: &String,
database_connection: &Pool<Postgres>,
) -> Result<Interaction, sqlx::Error> {
@ -53,7 +53,7 @@ pub async fn update(
}
pub async fn delete(
id: i64,
id: &i64,
database_connection: &Pool<Postgres>,
) -> Result<Interaction, sqlx::Error> {
sqlx::query_as!(