fix(email-nodemailer): skipVerify behavior being reversed (#6790)
Fixes #6789 The skipVerify field in NodemailerAdapterArgs worked in reverse of what it was supposed to do: - With skipVerify = true -> Verified transport - With skipVerify = false -> Did not verify transport This PR makes the property work in the intended way: - With skipVerify = true -> DO NOT verify transport - With skipVerify = false -> DO verify transport
This commit is contained in:
@@ -66,7 +66,7 @@ async function buildEmail(emailConfig?: NodemailerAdapterArgs): Promise<{
|
||||
transport = await createMockAccount(emailConfig)
|
||||
}
|
||||
|
||||
if (emailConfig.skipVerify !== false) {
|
||||
if (!emailConfig.skipVerify) {
|
||||
await verifyTransport(transport)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user