Fix emailer
authorChocobozzz <me@florianbigard.com>
Tue, 18 Feb 2020 07:29:23 +0000 (08:29 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 18 Feb 2020 07:29:23 +0000 (08:29 +0100)
server/lib/emailer.ts

index d0874ab209160f85a64f16063fe78c44adc7b8d1..26262972d42e90fc35383991fd22384f6d35dcfa 100644 (file)
@@ -40,7 +40,7 @@ class Emailer {
     if (this.initialized === true) return
     this.initialized = true
 
-    if (isEmailEnabled) {
+    if (isEmailEnabled()) {
       logger.info('Using %s:%s as SMTP server.', CONFIG.SMTP.HOSTNAME, CONFIG.SMTP.PORT)
 
       let tls