feat(db): align movie state with canonical MediaState (#85)
ci / web (push) Successful in 29s
e2e / e2e (push) Successful in 47s
ci / rust (push) Successful in 2m59s

This commit was merged in pull request #85.
This commit is contained in:
2026-08-22 23:21:09 +01:00
parent d3cea8693b
commit 62aba6315c
5 changed files with 143 additions and 14 deletions
+2 -2
View File
@@ -352,7 +352,7 @@ impl GrabAction {
.fetch_optional(database.pool())
.await?;
sqlx::query!(
"UPDATE movies SET state = 'grabbed',
"UPDATE movies SET state = 'downloading',
updated_at = strftime('%Y-%m-%dT%H:%M:%fZ', 'now')
WHERE id = ?",
movie.id
@@ -852,7 +852,7 @@ mod tests {
.fetch_one(database.pool())
.await
.unwrap();
assert_eq!(state, "grabbed");
assert_eq!(state, "downloading");
}
/// The failure mode the issue names: killed after the torrent is sent and