Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multi WizardStep #1262

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix multi WizardStep #1262

wants to merge 2 commits into from

Conversation

ron-tayler
Copy link

Don't work:

@WizardStep(2)
@WizardStep(3)
async invalidInput(@Ctx() ctx: WizardContext) {
  await ctx.reply('❌ Invalid Format. Please, try now.');
}

Work, but bad code style:

@WizardStep(2)
async invalidInput2(@Ctx() ctx: WizardContext) {
  await ctx.reply('❌ Invalid Format. Please, try now.');
}

@WizardStep(3)
async invalidInput3(@Ctx() ctx: WizardContext) {
  await ctx.reply('❌ Invalid Format. Please, try now.');
}

Add in this Pull-Request, good style:

@WizardStep(2, 3)
async invalidInput(@Ctx() ctx: WizardContext) {
  await ctx.reply('❌ Invalid Format. Please, try now.');
}

…бновил декоратор WizardStep для приема нескольких шагов и модифицировал обработку шагов в listeners-explorer.service.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant