From 05fe40b70dd443633644c5e9c1a1fb8171e1be06 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sat, 14 Dec 2024 03:52:23 +0100 Subject: [PATCH] fix --- src/library/video.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)