I THINK THIS IS IT

This commit is contained in:
Gvidas Juknevičius 2024-03-30 19:07:02 +02:00
parent 5f9b260d76
commit 16d5a1d1ac
Signed by: MCorange
GPG Key ID: 12B1346D720B7FBB

View File

@ -24,7 +24,7 @@ impl Post {
sqlx::query(r#" sqlx::query(r#"
INSERT INTO posts ( id, title, descr, img_url, origin_url, original_request, posted_on ) INSERT INTO posts ( id, title, descr, img_url, origin_url, original_request, posted_on )
VALUES ( $1, $2, $3, $4, 0 ) VALUES ( $1, $2, $3, $4, $5, $6, $7 )
RETURNING id RETURNING id
"#) "#)
.bind(id) .bind(id)