fix: update checkin_api to use Completed status

修復:
- checkin: 使用 Completed 而不是 Indexed
- checkout: 使用 Completed 而不是 CheckedOut

原因:
- 已簡化狀態為 Scanning 和 Completed
- 移除了 Indexed 和 CheckedOut 狀態
This commit is contained in:
Accusys
2026-09-29 02:14:21 +08:00
parent 8eca08c7c9
commit 676171cd64
+5 -5
View File
@@ -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
);