ensure internal tableId always attached to user objects
This commit is contained in:
parent
05d2888ec6
commit
adcfe0fee5
|
@ -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),
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue