From b504634b622e50ef748ffb7805416f396ac3fba2 Mon Sep 17 00:00:00 2001 From: Louis Laureys Date: Wed, 7 Oct 2020 16:40:14 +0200 Subject: [PATCH] Fix unconverted objectids --- lib/api/addresses.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/api/addresses.js b/lib/api/addresses.js index d6927fed..e58f52fb 100644 --- a/lib/api/addresses.js +++ b/lib/api/addresses.js @@ -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 };