fix "registrationService.getCustomer is not a function"
This commit is contained in:
parent
8e61fbbb40
commit
aa11ecfcec
@ -14,7 +14,7 @@ feature.command('start', logHandle('command-start'), async (ctx) => {
|
|||||||
const telegramId = ctx.from.id;
|
const telegramId = ctx.from.id;
|
||||||
|
|
||||||
const registrationService = new RegistrationService();
|
const registrationService = new RegistrationService();
|
||||||
const { customer } = await registrationService.getCustomer({ telegramId });
|
const { customer } = await registrationService.checkCustomerExists({ telegramId });
|
||||||
|
|
||||||
if (customer) {
|
if (customer) {
|
||||||
// Пользователь уже зарегистрирован — приветствуем
|
// Пользователь уже зарегистрирован — приветствуем
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user