diff --git a/apps/bot/src/bot/features/registration.ts b/apps/bot/src/bot/features/registration.ts index 3e2bf5e..745de66 100644 --- a/apps/bot/src/bot/features/registration.ts +++ b/apps/bot/src/bot/features/registration.ts @@ -60,9 +60,7 @@ feature.on(':contact', logHandle('contact-registration'), async (ctx) => { const response = await registrationService.createCustomer({ name, phone, telegramId }); const documentId = response?.createCustomer?.documentId; - if (!documentId) { - throw new Error('Не удалось создать клиента: отсутствует documentId'); - } + if (!documentId) return ctx.reply(ctx.t('err-generic')); await registrationService.updateCustomer({ data: { active: true },