Skip to content

Commit 6e5223d

Browse files
committed
admin/enqueue_job: Add support for crates-admin enqueue-job sync_admins
1 parent 3eabfad commit 6e5223d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/admin/enqueue_job.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ pub enum Command {
3030
#[arg()]
3131
name: String,
3232
},
33+
SyncAdmins,
3334
}
3435

3536
pub fn run(command: Command) -> Result<()> {
@@ -58,6 +59,9 @@ pub fn run(command: Command) -> Result<()> {
5859
} => {
5960
jobs::DumpDb::new(database_url.expose_secret(), target_name).enqueue(conn)?;
6061
}
62+
Command::SyncAdmins => {
63+
jobs::SyncAdmins.enqueue(conn)?;
64+
}
6165
Command::DailyDbMaintenance => {
6266
jobs::DailyDbMaintenance.enqueue(conn)?;
6367
}

0 commit comments

Comments
 (0)