]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/emailer.ts
change fixtures to reflect output size of jimp
[github/Chocobozzz/PeerTube.git] / server / lib / emailer.ts
index 935c9e882ca15f5715888d333a9e8cbff53a203a..04aade83a2a882dc480243cd0219facfe6838627 100644 (file)
@@ -473,7 +473,7 @@ class Emailer {
       },
       transport: this.transporter,
       views: {
-        root: join(root(), 'server', 'lib', 'emails')
+        root: join(root(), 'dist', 'server', 'lib', 'emails')
       },
       subjectPrefix: CONFIG.EMAIL.SUBJECT.PREFIX
     })
@@ -498,8 +498,8 @@ class Emailer {
           },
           options // overriden/new variables given for a specific template in the payload
         ) as SendEmailOptions)
-        .then(logger.info)
-        .catch(logger.error)
+        .then(res => logger.debug('Sent email.', { res }))
+        .catch(err => logger.error('Error in email sender.', { err }))
     }
   }