Merge pull request 'use js to string' (#15) from dev into main
All checks were successful
Build && Deploy / cargo build (push) Successful in 1m2s
All checks were successful
Build && Deploy / cargo build (push) Successful in 1m2s
Reviewed-on: #15
This commit is contained in:
commit
5955fc297d
@ -157,7 +157,7 @@ async fn handle_callback(bot: Bot, mut db: DB, bm: BotMessage, q: CallbackQuery)
|
||||
);
|
||||
match handler.call_args(vec![jsuser]) {
|
||||
Ok(v) => {
|
||||
println!("Ok branch, value: {v:?}");
|
||||
println!("Ok branch, value: {:?}", v.js_to_string());
|
||||
if v.is_bool() {
|
||||
v.to_bool().unwrap_or(true)
|
||||
} else if v.is_int() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user