mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Hotfix 2.6.2 (#888)
This commit is contained in:
parent
2045ae02d1
commit
00b6f09466
2 changed files with 30 additions and 0 deletions
5
server-ce/hotfix/2.6.2/Dockerfile
Normal file
5
server-ce/hotfix/2.6.2/Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
FROM sharelatex/sharelatex:2.6.1
|
||||||
|
|
||||||
|
# Patch: fixes overleaf.com onboarding email being sent in CE/SP
|
||||||
|
COPY onboarding-email.patch ${baseDir}
|
||||||
|
RUN cd ${baseDir} && patch -p0 < onboarding-email.patch
|
25
server-ce/hotfix/2.6.2/onboarding-email.patch
Normal file
25
server-ce/hotfix/2.6.2/onboarding-email.patch
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
--- /var/www/sharelatex/web/app/src/Features/User/UserCreator.js
|
||||||
|
+++ /var/www/sharelatex/web/app/src/Features/User/UserCreator.js
|
||||||
|
@@ -85,13 +85,15 @@ async function createNewUser(attributes, options = {}) {
|
||||||
|
}
|
||||||
|
|
||||||
|
Analytics.recordEvent(user._id, 'user-registered')
|
||||||
|
- try {
|
||||||
|
- await UserOnboardingEmailQueueManager.scheduleOnboardingEmail(user)
|
||||||
|
- } catch (error) {
|
||||||
|
- logger.error(
|
||||||
|
- `Failed to schedule sending of onboarding email for user '${user._id}'`,
|
||||||
|
- error
|
||||||
|
- )
|
||||||
|
+ if(Features.hasFeature('saas')) {
|
||||||
|
+ try {
|
||||||
|
+ await UserOnboardingEmailQueueManager.scheduleOnboardingEmail(user)
|
||||||
|
+ } catch (error) {
|
||||||
|
+ logger.error(
|
||||||
|
+ `Failed to schedule sending of onboarding email for user '${user._id}'`,
|
||||||
|
+ error
|
||||||
|
+ )
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
return user
|
Loading…
Reference in a new issue