fix settings in email api (#3814)
This commit is contained in:
@@ -1089,7 +1089,6 @@ function getWorkflowBlock(node: WorkflowBlockNode): BlockYAML {
|
|||||||
totp_identifier: node.data.totpIdentifier,
|
totp_identifier: node.data.totpIdentifier,
|
||||||
totp_verification_url: node.data.totpVerificationUrl,
|
totp_verification_url: node.data.totpVerificationUrl,
|
||||||
url: node.data.url,
|
url: node.data.url,
|
||||||
disable_cache: node.data.disableCache ?? false,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
case "validation": {
|
case "validation": {
|
||||||
@@ -1895,7 +1894,6 @@ function convertBlocksToBlockYAML(
|
|||||||
max_steps: block.max_steps,
|
max_steps: block.max_steps,
|
||||||
totp_identifier: block.totp_identifier,
|
totp_identifier: block.totp_identifier,
|
||||||
totp_verification_url: block.totp_verification_url,
|
totp_verification_url: block.totp_verification_url,
|
||||||
disable_cache: block.disable_cache ?? false,
|
|
||||||
};
|
};
|
||||||
return blockYaml;
|
return blockYaml;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -174,7 +174,6 @@ export type Taskv2BlockYAML = BlockYAMLBase & {
|
|||||||
totp_verification_url: string | null;
|
totp_verification_url: string | null;
|
||||||
totp_identifier: string | null;
|
totp_identifier: string | null;
|
||||||
max_steps: number | null;
|
max_steps: number | null;
|
||||||
disable_cache: boolean;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ValidationBlockYAML = BlockYAMLBase & {
|
export type ValidationBlockYAML = BlockYAMLBase & {
|
||||||
|
|||||||
@@ -4,9 +4,10 @@ from email.message import EmailMessage
|
|||||||
import structlog
|
import structlog
|
||||||
from email_validator import EmailNotValidError, validate_email
|
from email_validator import EmailNotValidError, validate_email
|
||||||
|
|
||||||
from skyvern.config import settings
|
from skyvern.forge.sdk.settings_manager import SettingsManager
|
||||||
|
|
||||||
LOG = structlog.get_logger()
|
LOG = structlog.get_logger()
|
||||||
|
settings = SettingsManager.get_settings()
|
||||||
|
|
||||||
|
|
||||||
async def _send(*, message: EmailMessage) -> bool:
|
async def _send(*, message: EmailMessage) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user