From adcfe0fee5d6d5da305b84f2c2334030034da736 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Fri, 10 Sep 2021 17:02:55 +0100 Subject: [PATCH] ensure internal tableId always attached to user objects --- packages/server/src/api/controllers/user.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/server/src/api/controllers/user.js b/packages/server/src/api/controllers/user.js index 6778f983c2..3ff67278b4 100644 --- a/packages/server/src/api/controllers/user.js +++ b/packages/server/src/api/controllers/user.js @@ -33,6 +33,7 @@ exports.fetchMetadata = async function (ctx) { users.push({ ...user, ...info, + tableId: InternalTables.USER_METADATA, // make sure the ID is always a local ID, not a global one _id: generateUserMetadataID(user._id), })