fix: 修复 video path 未正确设置问题

This commit is contained in:
amtoaer
2025-01-24 14:05:16 +08:00
parent 40cf22a7fa
commit 979294bb94

View File

@@ -99,7 +99,7 @@ pub async fn update_videos_model(videos: Vec<video::ActiveModel>, connection: &D
video::Entity::insert_many(videos)
.on_conflict(
OnConflict::column(video::Column::Id)
.update_column(video::Column::DownloadStatus)
.update_columns([video::Column::DownloadStatus, video::Column::Path])
.to_owned(),
)
.exec(connection)