aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xscripts/build/server.sh1
-rw-r--r--server/lib/emailer.ts6
2 files changed, 4 insertions, 3 deletions
diff --git a/scripts/build/server.sh b/scripts/build/server.sh
index 2ec83a3e1..b903f8250 100755
--- a/scripts/build/server.sh
+++ b/scripts/build/server.sh
@@ -7,3 +7,4 @@ rm -rf ./dist
7npm run tsc 7npm run tsc
8cp "./tsconfig.json" "./dist" 8cp "./tsconfig.json" "./dist"
9cp -r "./server/static" "./server/assets" "./dist/server" 9cp -r "./server/static" "./server/assets" "./dist/server"
10cp -r "./server/lib/emails" "./dist/server/lib"
diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts
index 935c9e882..04aade83a 100644
--- a/server/lib/emailer.ts
+++ b/server/lib/emailer.ts
@@ -473,7 +473,7 @@ class Emailer {
473 }, 473 },
474 transport: this.transporter, 474 transport: this.transporter,
475 views: { 475 views: {
476 root: join(root(), 'server', 'lib', 'emails') 476 root: join(root(), 'dist', 'server', 'lib', 'emails')
477 }, 477 },
478 subjectPrefix: CONFIG.EMAIL.SUBJECT.PREFIX 478 subjectPrefix: CONFIG.EMAIL.SUBJECT.PREFIX
479 }) 479 })
@@ -498,8 +498,8 @@ class Emailer {
498 }, 498 },
499 options // overriden/new variables given for a specific template in the payload 499 options // overriden/new variables given for a specific template in the payload
500 ) as SendEmailOptions) 500 ) as SendEmailOptions)
501 .then(logger.info) 501 .then(res => logger.debug('Sent email.', { res }))
502 .catch(logger.error) 502 .catch(err => logger.error('Error in email sender.', { err }))
503 } 503 }
504 } 504 }
505 505