Loading server/startup/migrations/v073.js 0 → 100644 +15 −0 Original line number Diff line number Diff line RocketChat.Migrations.add({ version: 73, up: function() { RocketChat.models.Users.find({ 'oauth.athorizedClients': { $exists: true } }, { oauth: 1 }).forEach(function(user) { RocketChat.models.Users.update({ _id: user._id }, { $set: { 'oauth.authorizedClients': user.oauth.athorizedClients }, $unset: { 'oauth.athorizedClients': 1 } }); }); } }); Loading
server/startup/migrations/v073.js 0 → 100644 +15 −0 Original line number Diff line number Diff line RocketChat.Migrations.add({ version: 73, up: function() { RocketChat.models.Users.find({ 'oauth.athorizedClients': { $exists: true } }, { oauth: 1 }).forEach(function(user) { RocketChat.models.Users.update({ _id: user._id }, { $set: { 'oauth.authorizedClients': user.oauth.athorizedClients }, $unset: { 'oauth.athorizedClients': 1 } }); }); } });