another (unrelated) lint fix

This commit is contained in:
Ulf Gebhardt 2021-11-10 23:52:44 +01:00
parent dc8091b60b
commit 61786d9e5d
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -2,7 +2,12 @@ import { createTransport } from 'nodemailer'
import CONFIG from '../config'
export const sendEMail = async (emailDef: any): Promise<boolean> => {
export const sendEMail = async (emailDef: {
from: string
to: string
subject: string
text: string
}): Promise<boolean> => {
if (!CONFIG.EMAIL) {
// eslint-disable-next-line no-console
console.log('Emails are disabled via config')