File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ interface DomainVerificationStatusEmailProps {
1111 domainName : string ;
1212 currentStatus : DomainStatus ;
1313 previousStatus : DomainStatus ;
14- verificationError ?: string | null ;
1514 domainUrl : string ;
1615}
1716
@@ -37,7 +36,6 @@ export function DomainVerificationStatusEmail({
3736 domainName,
3837 currentStatus,
3938 previousStatus,
40- verificationError,
4139 domainUrl,
4240} : DomainVerificationStatusEmailProps ) {
4341 const isSuccess = currentStatus === DomainStatus . SUCCESS ;
@@ -89,29 +87,6 @@ export function DomainVerificationStatusEmail({
8987 </ Text >
9088 ) }
9189
92- { verificationError ? (
93- < Container
94- style = { {
95- backgroundColor : "#fef2f2" ,
96- border : "1px solid #fecaca" ,
97- padding : "12px 16px" ,
98- margin : "0 0 24px 0" ,
99- borderRadius : "4px" ,
100- } }
101- >
102- < Text
103- style = { {
104- margin : 0 ,
105- color : "#991b1b" ,
106- fontSize : 14 ,
107- textAlign : "left" as const ,
108- } }
109- >
110- Verification error: { verificationError }
111- </ Text >
112- </ Container >
113- ) : null }
114-
11590 < Text
11691 style = { {
11792 fontSize : "14px" ,
Original file line number Diff line number Diff line change @@ -243,11 +243,9 @@ function shouldSendDomainStatusNotification({
243243async function sendDomainStatusNotification ( {
244244 domain,
245245 previousStatus,
246- verificationError,
247246} : {
248247 domain : Domain ;
249248 previousStatus : DomainStatus ;
250- verificationError : string | null ;
251249} ) {
252250 const recipients = (
253251 await db . teamUser . findMany ( {
@@ -282,7 +280,6 @@ async function sendDomainStatusNotification({
282280 domainName : domain . name ,
283281 currentStatus : domain . status ,
284282 previousStatus,
285- verificationError,
286283 domainUrl,
287284 } ) ;
288285 const statusMessage =
@@ -293,7 +290,6 @@ async function sendDomainStatusNotification({
293290 "Hey," ,
294291 null ,
295292 statusMessage ,
296- verificationError ? `Verification error: ${ verificationError } ` : null ,
297293 null ,
298294 `Open domain settings: ${ domainUrl } ` ,
299295 null ,
@@ -554,7 +550,6 @@ export async function refreshDomainVerification(
554550 await sendDomainStatusNotification ( {
555551 domain : updatedDomain ,
556552 previousStatus,
557- verificationError,
558553 } ) ;
559554 await setLastNotifiedDomainStatus ( domain . id , updatedDomain . status ) ;
560555 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments