Skip to content

Commit

Permalink
Fix binding values in handle_history function
Browse files Browse the repository at this point in the history
  • Loading branch information
ykdy3951 committed Mar 1, 2024
1 parent 99d0534 commit 1bf9697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/history/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub async fn handle_history(history: History) -> Result<(), Box<dyn std::error::
statement.bind_iter::<_, (_, Value)>([
(":query", condition.into()),
(":limit", limit.to_string().into())
])?; // Bind the values to the statement
])?;

while let Ok(State::Row) = statement.next() {
let id: i64 = statement.read(0)?;
Expand Down

0 comments on commit 1bf9697

Please sign in to comment.