running cron should call post_unit
This commit is contained in:
parent
d3f75f67ee
commit
6ce8aa731a
|
@ -9,7 +9,7 @@ impl Forgejo {
|
|||
}
|
||||
|
||||
pub async fn admin_run_cron(&self, name: &str) -> Result<(), ForgejoError> {
|
||||
self.post(&format!("admin/cron/{name}"), &()).await
|
||||
self.post_unit(&format!("admin/cron/{name}"), &()).await
|
||||
}
|
||||
|
||||
pub async fn admin_get_emails(
|
||||
|
|
Loading…
Reference in a new issue