From 03fc19281b476f29b315083f373ca1a1fd4487f9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 2 Jun 2020 09:21:33 +0200 Subject: [PATCH 1/2] Fix emails --- scripts/build/server.sh | 1 + server/lib/emailer.ts | 6 +++--- 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 npm run tsc cp "./tsconfig.json" "./dist" cp -r "./server/static" "./server/assets" "./dist/server" +cp -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 { }, 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 })) } } From f3e887e5f0f5669d09ca6fad13f3a39095d4b2f0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 2 Jun 2020 09:30:49 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d96b64e40..92ad4344b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog -## v2.2.0-rc.1 +## v2.2.0 + +**Since v2.1.0** ## IMPORTANT NOTES @@ -163,6 +165,33 @@ * Fix playlist creation/update with a long description * Fix links of same instance in video description * Fix REPL script + * Fix broken client when cookies are disabled + * Fix upload button color in dark mode + * Explicit theme colors for inputs and textarea + * Fix input/textarea themes + * Fix action button icons theme + * Fix grey color theme + * Fix regression scrollbar bgcolor mdtextarea maximized-mode ([@kimsible](https://github.com/kimsible)) + + +**since v2.2.0-rc.1** + +### Bug fixes + + * Fix broken migration introduced in 2.2.0-rc.1 in docker + * Fix sort icons in tables + * Fix action button overflow in tables + * Fix broken client when cookies are disabled + * Fix upload button color in dark mode + * Explicit theme colors for inputs and textarea + * Fix input/textarea themes + * Fix dropdown menu overflow + * Fix notifications with dark theme + * Fix action button icons theme + * Fix grey color theme + * Fix regression scrollbar bgcolor mdtextarea maximized-mode ([@kimsible](https://github.com/kimsible)) + * Fix broken emails + ## v2.1.1