mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 22:39:46 +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(())
|
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> {
|
pub async fn delete_before(#[context] ctx: RpcContext, #[arg] before: u32) -> Result<(), Error> {
|
||||||
sqlx::query!("DELETE FROM notifications WHERE id < ?", before)
|
sqlx::query!("DELETE FROM notifications WHERE id < ?", before)
|
||||||
.execute(&ctx.secret_store)
|
.execute(&ctx.secret_store)
|
||||||
|
|||||||
Reference in New Issue
Block a user