This commit is contained in:
parent
cb680bba76
commit
05fe40b70d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue