mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
pass base_url to emails as variable
This commit is contained in:
parent
be37e88dc3
commit
7c0b25d58a
1 changed files with 2 additions and 0 deletions
|
|
@ -35,6 +35,8 @@ function getMailingInfo(user) {
|
|||
}
|
||||
|
||||
module.exports.txnEmail = function(mailingInfo, emailType, variables){
|
||||
var variables = [{name: 'BASE_URL', content: nconf.get('BASE_URL')}].concat(variables || []);
|
||||
|
||||
if (mailingInfo._id) mailingInfo = getMailingInfo(mailingInfo);
|
||||
if (!mailingInfo.email) return;
|
||||
request({
|
||||
|
|
|
|||
Loading…
Reference in a new issue