Add index Subscription emailNotifications

pull/2637/head
Rodrigo Nascimento 9 years ago
parent dd90617d9d
commit b52b861744
  1. 1
      packages/rocketchat-lib/server/models/Subscriptions.coffee

@ -13,6 +13,7 @@ RocketChat.models.Subscriptions = new class extends RocketChat.models._Base
@tryEnsureIndex { 'ls': 1 }
@tryEnsureIndex { 'desktopNotifications': 1 }, { sparse: 1 }
@tryEnsureIndex { 'mobilePushNotifications': 1 }, { sparse: 1 }
@tryEnsureIndex { 'emailNotifications': 1 }, { sparse: 1 }
# FIND ONE

Loading…
Cancel
Save