From 676171cd641e0b26417319c47a0cba17dc25cdd7 Mon Sep 17 00:00:00 2001 From: Accusys Date: Tue, 29 Sep 2026 02:14:21 +0800 Subject: [PATCH] fix: update checkin_api to use Completed status MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修復: - checkin: 使用 Completed 而不是 Indexed - checkout: 使用 Completed 而不是 CheckedOut 原因: - 已簡化狀態為 Scanning 和 Completed - 移除了 Indexed 和 CheckedOut 狀態 --- src/api/checkin_api.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/checkin_api.rs b/src/api/checkin_api.rs index a6b3ad95..2a4c46bf 100644 --- a/src/api/checkin_api.rs +++ b/src/api/checkin_api.rs @@ -40,11 +40,11 @@ async fn checkin_handler( Ok(result) => { if let Err(e) = state .db - .update_video_status(&file_uuid, VideoStatus::Indexed) + .update_video_status(&file_uuid, VideoStatus::Completed) .await { tracing::warn!( - "Failed to update video status to Indexed for {}: {}", + "Failed to update video status to Completed for {}: {}", file_uuid, e ); @@ -54,7 +54,7 @@ async fn checkin_handler( pre_chunks_moved: result.pre_chunks_moved, speaker_detections_moved: result.speaker_detections_moved, vectors_moved: result.vectors_moved, - status: "indexed".to_string(), + status: "completed".to_string(), })) } Err(e) => Err(( @@ -75,11 +75,11 @@ async fn checkout_handler( Ok(result) => { if let Err(e) = state .db - .update_video_status(&file_uuid, VideoStatus::CheckedOut) + .update_video_status(&file_uuid, VideoStatus::Completed) .await { tracing::warn!( - "Failed to update video status to CheckedOut for {}: {}", + "Failed to update video status to Completed for {}: {}", file_uuid, e );