mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
fix(flags): correctly send flag reports emails
This commit is contained in:
parent
b639896ae6
commit
05f6e5e14d
1 changed files with 1 additions and 0 deletions
|
|
@ -338,6 +338,7 @@ api.flagChatMessage = function(req, res, next){
|
|||
group.save(function(err,_saved){
|
||||
if(err) return next(err);
|
||||
var addressesToSendTo = nconf.get('FLAG_REPORT_EMAIL');
|
||||
addressesToSendTo = (typeof addressesToSendTo == 'string') ? JSON.parse(addressesToSendTo) : addressesToSendTo;
|
||||
|
||||
if(Array.isArray(addressesToSendTo)){
|
||||
addressesToSendTo = addressesToSendTo.map(function(email){
|
||||
|
|
|
|||
Loading…
Reference in a new issue