mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 14:13:26 +00:00
send cancelation email after 1 hour
This commit is contained in:
parent
6efda9cf1c
commit
9c98e95ca4
1 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,9 @@ module.exports =
|
||||||
emailOpts =
|
emailOpts =
|
||||||
to: user.email
|
to: user.email
|
||||||
first_name: user.first_name
|
first_name: user.first_name
|
||||||
EmailHandler.sendEmail "canceledSubscription", emailOpts
|
ONE_HOUR_IN_MS = 1000 * 60 * 60
|
||||||
|
setTimeout (-> EmailHandler.sendEmail "canceledSubscription", emailOpts
|
||||||
|
), ONE_HOUR_IN_MS
|
||||||
callback()
|
callback()
|
||||||
else
|
else
|
||||||
callback()
|
callback()
|
||||||
|
|
Loading…
Reference in a new issue