1
0
Fork 0
mirror of synced 2024-10-01 09:38:55 +13:00

ensure internal tableId always attached to user objects

This commit is contained in:
Martin McKeaveney 2021-09-10 17:02:55 +01:00
parent ddc2124ae8
commit 54749d2668

View file

@ -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),
})