From e405f8477865d00c90d396d8b5a26553d7779940 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 23 Oct 2025 23:39:53 +0200 Subject: fix(crates/rocie-cli): Handle updates to `buy-barcode` --- crates/rocie-cli/src/handle/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/rocie-cli/src/handle/mod.rs') diff --git a/crates/rocie-cli/src/handle/mod.rs b/crates/rocie-cli/src/handle/mod.rs index 101f56d..929c0ff 100644 --- a/crates/rocie-cli/src/handle/mod.rs +++ b/crates/rocie-cli/src/handle/mod.rs @@ -148,8 +148,8 @@ pub(crate) async fn product(config: &Configuration, command: ProductCommand) -> pub(crate) async fn barcode(config: &Configuration, command: BarcodeCommand) -> Result<()> { match command { - BarcodeCommand::Buy { id } => { - buy_barcode(config, BarcodeId { value: id }).await?; + BarcodeCommand::Buy { id, times } => { + buy_barcode(config, BarcodeId { value: id }, u32::from(times)).await?; } BarcodeCommand::Consume { id, -- cgit 1.4.1