feat: register INSERT now uses status='registered' + registration_time=NOW()
This commit is contained in:
@@ -1036,7 +1036,7 @@ async fn register_single_file(
|
||||
}
|
||||
|
||||
let videos_table = schema::table_name("videos");
|
||||
let status = "pending";
|
||||
let status = "registered";
|
||||
let _ = sqlx::query(&format!(
|
||||
"INSERT INTO {} (file_uuid, file_path, file_name, file_type, duration, width, height, fps, probe_json, status, content_hash, registration_time) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, NOW()) ON CONFLICT (file_uuid) DO UPDATE SET file_path = EXCLUDED.file_path, file_name = EXCLUDED.file_name, status = EXCLUDED.status, content_hash = EXCLUDED.content_hash",
|
||||
videos_table
|
||||
|
||||
Reference in New Issue
Block a user