Skip to content
Snippets Groups Projects
Commit 60bef0aa authored by Gabriel Engel's avatar Gabriel Engel
Browse files

fir broken migration

parent 2d1d2e6a
No related branches found
No related tags found
No related merge requests found
......@@ -20,9 +20,8 @@ Meteor.startup ->
# Add 'moderator' role to channel/group creators
rooms = RocketChat.models.Rooms.findByTypes(['c','p']).fetch()
_.each( rooms, (room) ->
_.each rooms, (room) ->
creator = room?.u?._id
if creator
RocketChat.authz.addUsersToRoles( creator, ['moderator'], room._id)
console.log "Add #{room.u.username} to 'moderator' role".green
)
Meteor.startup ->
Migrations.add
version: 22
up: ->
RocketChat.models.Settings.remove { _id: 'Accounts_denyUnverifiedEmails' }
console.log 'Deleting not used setting Accounts_denyUnverifiedEmails'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment