0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

feat(core): enable email service connector (#4120)

This commit is contained in:
Xiao Yijun 2023-07-05 12:41:33 +08:00 committed by GitHub
parent 460fb940f2
commit b232f8dd39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,6 @@ import { connectorDirectory } from '@logto/cli/lib/constants.js';
import { getConnectorPackagesFromDirectory } from '@logto/cli/lib/utils.js'; import { getConnectorPackagesFromDirectory } from '@logto/cli/lib/utils.js';
import { import {
demoConnectorIds, demoConnectorIds,
serviceConnectorIds,
ConnectorType, ConnectorType,
type EmailConnector, type EmailConnector,
type SmsConnector, type SmsConnector,
@ -41,8 +40,7 @@ export const transpileLogtoConnector = async (
); );
const { dbEntry, metadata, type } = connector; const { dbEntry, metadata, type } = connector;
const { config, connectorId: id } = dbEntry; 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);
const isDemo = demoConnectorIds.includes(id) || serviceConnectorIds.includes(id);
return { return {
type, type,
@ -63,8 +61,7 @@ export const transpileConnectorFactory = ({
return { return {
type, type,
...metadata, ...metadata,
/** Temporarily block entering Logto email connector as well until this feature is ready for prod. */ isDemo: demoConnectorIds.includes(metadata.id),
isDemo: demoConnectorIds.includes(metadata.id) || serviceConnectorIds.includes(metadata.id),
}; };
}; };