fix invalid targets

This commit is contained in:
Andris Reinman 2018-01-05 13:36:43 +02:00 committed by Fn凡派
parent e9cf70fa12
commit 2520357ce3

View file

@ -1496,12 +1496,14 @@ module.exports = (db, server) => {
target.user = map.get(addrv);
}
});
updates.targets = targets;
done();
});
};
resolveUsers(() => {
if (targets && targets.length) {
updates.targets = targets;
}
// insert alias address to email address registry
db.users.collection('addresses').findOneAndUpdate(
{