mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
rename command so that it works in rpc
This commit is contained in:
committed by
Aiden McClelland
parent
4caee9a3e8
commit
2540bf301e
@@ -125,7 +125,7 @@ pub async fn delete(#[context] ctx: RpcContext, #[arg] id: u32) -> Result<(), Er
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[command(display(display_none))]
|
||||
#[command(rename = "delete-before", display(display_none))]
|
||||
pub async fn delete_before(#[context] ctx: RpcContext, #[arg] before: u32) -> Result<(), Error> {
|
||||
sqlx::query!("DELETE FROM notifications WHERE id < ?", before)
|
||||
.execute(&ctx.secret_store)
|
||||
|
||||
Reference in New Issue
Block a user