diff --git a/src/admin/enqueue_job.rs b/src/admin/enqueue_job.rs index 15376d49dbd..d7e2bbc9045 100644 --- a/src/admin/enqueue_job.rs +++ b/src/admin/enqueue_job.rs @@ -30,6 +30,7 @@ pub enum Command { #[arg()] name: String, }, + SyncAdmins, } pub fn run(command: Command) -> Result<()> { @@ -58,6 +59,9 @@ pub fn run(command: Command) -> Result<()> { } => { jobs::DumpDb::new(database_url.expose_secret(), target_name).enqueue(conn)?; } + Command::SyncAdmins => { + jobs::SyncAdmins.enqueue(conn)?; + } Command::DailyDbMaintenance => { jobs::DailyDbMaintenance.enqueue(conn)?; }