diff --git a/app/importer-slack-users/server/importer.js b/app/importer-slack-users/server/importer.js index 9895fd07990d..6371a568f4a9 100644 --- a/app/importer-slack-users/server/importer.js +++ b/app/importer-slack-users/server/importer.js @@ -102,7 +102,7 @@ export class SlackUsersImporter extends Base { // since we have an existing user, let's try a few things userId = existantUser._id; u.rocketId = existantUser._id; - Users.update({ _id: u.rocketId }, { $addToSet: { importIds: u.id } }); + Users.update({ _id: u.rocketId }, { $addToSet: { importIds: u.user_id } }); Users.setEmail(existantUser._id, u.email); Users.setEmailVerified(existantUser._id, u.email); @@ -117,7 +117,7 @@ export class SlackUsersImporter extends Base { Meteor.runAsUser(userId, () => { Meteor.call('setUsername', u.username, { joinDefaultChannelsSilenced: true }); Users.setName(userId, u.name); - Users.update({ _id: userId }, { $addToSet: { importIds: u.id } }); + Users.update({ _id: userId }, { $addToSet: { importIds: u.user_id } }); Users.setEmail(userId, u.email); Users.setEmailVerified(userId, u.email); u.rocketId = userId;