fix: template respone & ui
This commit is contained in:
@@ -62,8 +62,7 @@ interface validatorDataType {
|
||||
}
|
||||
|
||||
const initTemplateData: emailTemplateDataType = {
|
||||
[EmailTemplateInputDataFields.EVENT_NAME]:
|
||||
emailTemplateEventNames.BASIC_AUTH_SIGNUP,
|
||||
[EmailTemplateInputDataFields.EVENT_NAME]: emailTemplateEventNames.Signup,
|
||||
[EmailTemplateInputDataFields.SUBJECT]: '',
|
||||
};
|
||||
|
||||
@@ -206,10 +205,10 @@ const UpdateEmailTemplate = ({
|
||||
).reduce((acc, varData): any => {
|
||||
if (
|
||||
(templateData[EmailTemplateInputDataFields.EVENT_NAME] !==
|
||||
emailTemplateEventNames.VERIFY_OTP &&
|
||||
emailTemplateEventNames['Verify Otp'] &&
|
||||
varData[1] === emailTemplateVariables.otp) ||
|
||||
(templateData[EmailTemplateInputDataFields.EVENT_NAME] ===
|
||||
emailTemplateEventNames.VERIFY_OTP &&
|
||||
emailTemplateEventNames['Verify Otp'] &&
|
||||
varData[1] === emailTemplateVariables.verification_url)
|
||||
) {
|
||||
return acc;
|
||||
|
@@ -94,7 +94,7 @@ interface validatorDataType {
|
||||
}
|
||||
|
||||
const initWebhookData: webhookDataType = {
|
||||
[WebhookInputDataFields.EVENT_NAME]: webhookEventNames.USER_LOGIN,
|
||||
[WebhookInputDataFields.EVENT_NAME]: webhookEventNames['User login'],
|
||||
[WebhookInputDataFields.ENDPOINT]: '',
|
||||
[WebhookInputDataFields.ENABLED]: true,
|
||||
[WebhookInputDataFields.HEADERS]: [{ ...initHeadersData }],
|
||||
|
Reference in New Issue
Block a user