mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-12-27 02:10:52 +08:00
Fix unconverted objectids
This commit is contained in:
parent
eefd309a74
commit
b504634b62
1 changed files with 2 additions and 2 deletions
|
@ -247,7 +247,7 @@ module.exports = (db, server, userHandler) => {
|
|||
id: addressData._id.toString(),
|
||||
name: addressData.name || false,
|
||||
address: addressData.address,
|
||||
user: addressData.user,
|
||||
user: addressData.user.toString(),
|
||||
forwarded: !!addressData.targets,
|
||||
forwardedDisabled: !!(addressData.targets && addressData.forwardedDisabled),
|
||||
targets: addressData.targets && addressData.targets.map(t => t.value),
|
||||
|
@ -2426,7 +2426,7 @@ module.exports = (db, server, userHandler) => {
|
|||
success: true,
|
||||
id: addressData._id.toString(),
|
||||
address: addressData.address,
|
||||
user: addressData.user,
|
||||
user: addressData.user.toString(),
|
||||
tags: addressData.tags || [],
|
||||
created: addressData.created
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue