ensure internal tableId always attached to user objects

This commit is contained in:
Martin McKeaveney 2021-09-10 17:02:55 +01:00
parent 05d2888ec6
commit adcfe0fee5
1 changed files with 1 additions and 0 deletions

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