Fix unconverted objectids

This commit is contained in:
Louis Laureys 2020-10-07 16:40:14 +02:00
parent eefd309a74
commit b504634b62

View file

@ -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
};