]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/emailer.ts
Fix emailer
[github/Chocobozzz/PeerTube.git] / 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