From b232f8dd39a557c47586a785a8b40f2e00f34578 Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Wed, 5 Jul 2023 12:41:33 +0800 Subject: [PATCH] feat(core): enable email service connector (#4120) --- packages/core/src/utils/connectors/index.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/core/src/utils/connectors/index.ts b/packages/core/src/utils/connectors/index.ts index dec79a471..bf678d70a 100644 --- a/packages/core/src/utils/connectors/index.ts +++ b/packages/core/src/utils/connectors/index.ts @@ -8,7 +8,6 @@ import { connectorDirectory } from '@logto/cli/lib/constants.js'; import { getConnectorPackagesFromDirectory } from '@logto/cli/lib/utils.js'; import { demoConnectorIds, - serviceConnectorIds, ConnectorType, type EmailConnector, type SmsConnector, @@ -41,8 +40,7 @@ export const transpileLogtoConnector = async ( ); const { dbEntry, metadata, type } = connector; const { config, connectorId: id } = dbEntry; - /** Temporarily block entering Logto email connector as well until this feature is ready for prod. */ - const isDemo = demoConnectorIds.includes(id) || serviceConnectorIds.includes(id); + const isDemo = demoConnectorIds.includes(id); return { type, @@ -63,8 +61,7 @@ export const transpileConnectorFactory = ({ return { type, ...metadata, - /** Temporarily block entering Logto email connector as well until this feature is ready for prod. */ - isDemo: demoConnectorIds.includes(metadata.id) || serviceConnectorIds.includes(metadata.id), + isDemo: demoConnectorIds.includes(metadata.id), }; };