fix
Some checks are pending
ci/woodpecker/push/build Pipeline is pending

This commit is contained in:
JMARyA 2024-12-14 03:52:23 +01:00
parent cb680bba76
commit 05fe40b70d
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -116,7 +116,7 @@ impl Video {
.bind(&meta.upload_date()) .bind(&meta.upload_date())
.execute(&mut *tx).await.unwrap(); .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(&dir)
.bind(v.to_str().unwrap()) .bind(v.to_str().unwrap())
.bind(vid_duration) .bind(vid_duration)