We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01deb46 commit 851b2b8Copy full SHA for 851b2b8
src/cli/mod.rs
@@ -29,6 +29,8 @@ enum JobCommand {
29
},
30
/// Runs migrations
31
Migrate,
32
+ /// Intern stuff
33
+ Fixeroo
34
}
35
36
pub async fn maybe_cli(data: &AppData) -> anyhow::Result<bool> {
@@ -59,6 +61,12 @@ pub async fn maybe_cli(data: &AppData) -> anyhow::Result<bool> {
59
61
let mut conn = data.db().acquire().await?;
60
62
jobs::token_cleanup::token_cleanup(&mut conn).await?;
63
64
+ Ok(true)
65
+ },
66
+ JobCommand::Fixeroo => {
67
+ let mut conn = data.db().acquire().await?;
68
+ jobs::fixeroo::fixeroo(data.max_download_mb(), &mut conn).await?;
69
+
70
Ok(true)
71
72
0 commit comments