Skip to content

Commit

Permalink
fix: open_exercises_for_muscle_group_ query correct
Browse files Browse the repository at this point in the history
  • Loading branch information
no-treasure committed Nov 8, 2024
1 parent b4bfaff commit 360a2da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/telegram-bot/src/modules/workout.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ composer.callbackQuery(/choose_equipment_for_muscle_group_(\w+)_(\d+)/, async (c
keyboard
.text(
HUMAN_EQUIPMENT_NAMES[equipment],
`open_exercises_for_muscle_group_${muscle}_${equipment}_${workoutId}`
`open_exercises_for_muscle_group_${muscle}__${equipment}__${workoutId}`
)
.row()
})
Expand All @@ -114,7 +114,7 @@ composer.callbackQuery(/choose_equipment_for_muscle_group_(\w+)_(\d+)/, async (c
})
})

composer.callbackQuery(/open_exercises_for_muscle_group_(\w+)_(\w+)_(\d+)/, async (ctx) => {
composer.callbackQuery(/open_exercises_for_muscle_group_(\w+)__(\w+)__(\d+)/, async (ctx) => {
const muscle = ctx.match[1]! as Muscle
const equipment = ctx.match[2]! as Equipment
const workoutId = ctx.match[3]!
Expand Down

0 comments on commit 360a2da

Please sign in to comment.