From 979294bb94de6895e1419ea65732d4ce92958d4e Mon Sep 17 00:00:00 2001 From: amtoaer Date: Fri, 24 Jan 2025 14:05:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20video=20path=20?= =?UTF-8?q?=E6=9C=AA=E6=AD=A3=E7=A1=AE=E8=AE=BE=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/bili_sync/src/utils/model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bili_sync/src/utils/model.rs b/crates/bili_sync/src/utils/model.rs index 3379bb5..c14c70f 100644 --- a/crates/bili_sync/src/utils/model.rs +++ b/crates/bili_sync/src/utils/model.rs @@ -99,7 +99,7 @@ pub async fn update_videos_model(videos: Vec, 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)