Skip to content

Commit 851b2b8

Browse files
committed
chore: add job
1 parent 01deb46 commit 851b2b8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/cli/mod.rs

+8
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ enum JobCommand {
2929
},
3030
/// Runs migrations
3131
Migrate,
32+
/// Intern stuff
33+
Fixeroo
3234
}
3335

3436
pub async fn maybe_cli(data: &AppData) -> anyhow::Result<bool> {
@@ -59,6 +61,12 @@ pub async fn maybe_cli(data: &AppData) -> anyhow::Result<bool> {
5961
let mut conn = data.db().acquire().await?;
6062
jobs::token_cleanup::token_cleanup(&mut conn).await?;
6163

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+
6270
Ok(true)
6371
}
6472
},

0 commit comments

Comments
 (0)