use #[rest] on many string arguments

This commit is contained in:
2025-02-21 15:33:05 -05:00
parent c19215113f
commit e62dfcc4c8
5 changed files with 11 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ pub async fn wager(
ctx: Context<'_>,
amount: String,
#[autocomplete = "super::autocomplete_inventory"]
#[rest]
item: Option<String>) -> Result<(), Error>
{
let mut tx = ctx.data().database.begin().await?;