diff --git a/src/database/models/posts.rs b/src/database/models/posts.rs index 315fb38..9c04184 100644 --- a/src/database/models/posts.rs +++ b/src/database/models/posts.rs @@ -24,7 +24,7 @@ impl Post { sqlx::query(r#" 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 "#) .bind(id)