mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-11-11 01:54:04 +08:00
fix invalid targets
This commit is contained in:
parent
e9cf70fa12
commit
2520357ce3
1 changed files with 3 additions and 1 deletions
|
@ -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(
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue