From 2540bf301eab3238b34df6e0bc5d7ab5438a61cc Mon Sep 17 00:00:00 2001 From: Keagan McClelland Date: Wed, 6 Oct 2021 17:33:09 -0600 Subject: [PATCH] rename command so that it works in rpc --- appmgr/src/notifications.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appmgr/src/notifications.rs b/appmgr/src/notifications.rs index 9b9a664b1..a468dcaff 100644 --- a/appmgr/src/notifications.rs +++ b/appmgr/src/notifications.rs @@ -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)