diff --git a/src/library/video.rs b/src/library/video.rs index d8535a8..3abfbdd 100644 --- a/src/library/video.rs +++ b/src/library/video.rs @@ -116,7 +116,7 @@ impl Video { .bind(&meta.upload_date()) .execute(&mut *tx).await.unwrap(); - let vid = sqlx::query_as("INSERT INTO videos (directory, path, duration, title, youtube_id) VALUES ($1, $2, $3, $4, $5)") + let vid = sqlx::query_as("INSERT INTO videos (directory, path, duration, title, youtube_id) VALUES ($1, $2, $3, $4, $5) RETURNING *") .bind(&dir) .bind(v.to_str().unwrap()) .bind(vid_duration)