mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-17 11:32:16 +00:00
fix(emails): parse json
This commit is contained in:
parent
9d22e65e19
commit
925bfe8af4
1 changed files with 1 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ api.flagChatMessage = function(req, res, next){
|
|||
if(err) return next(err);
|
||||
if (isProd){
|
||||
|
||||
var addressesToSendTo = nconf.get('FLAG_REPORT_EMAIL');
|
||||
var addressesToSendTo = JSON.parse(nconf.get('FLAG_REPORT_EMAIL'));
|
||||
|
||||
if(Array.isArray(addressesToSendTo)){
|
||||
addressesToSendTo = addressesToSendTo.map(function(email){
|
||||
|
|
|
|||
Loading…
Reference in a new issue