1
0
Fork 0
mirror of synced 2024-06-27 18:40:42 +12: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 05d2888ec6
commit adcfe0fee5

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