(
state: Rc<RefCell<OpState>>,
#[number] task_id: u64,
)
| 75 | |
| 76 | #[op2(async)] |
| 77 | async fn op_bl_del_task( |
| 78 | state: Rc<RefCell<OpState>>, |
| 79 | #[number] task_id: u64, |
| 80 | ) -> Result<bool, AnyError> { |
| 81 | let rt_ctx = get_rt_ctx(&state); |
| 82 | RateLimiters::task_ops(&state).await; |
| 83 | |
| 84 | let del = rt_ctx.db.del_task_by_id(rt_ctx.guild_id, task_id).await?; |
| 85 | Ok(del > 0) |
| 86 | } |
| 87 | |
| 88 | #[op2(async)] |
| 89 | async fn op_bl_del_task_by_key( |
no test coverage detected