Skip to content
Snippets Groups Projects
Commit 5da434b6 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Closes #2078; ObserveChanges on rocketchat_room Not Using Oplog

parent 6f27eb10
No related merge requests found
......@@ -13,7 +13,7 @@ Meteor.publish 'spotlight', (selector, options, collName) ->
removed: (id) ->
self.removed("autocompleteRecords", id)
subHandleRooms = RocketChat.models.Rooms.findByNameContainingAndTypes(selector.name.$regex, ['c'], { limit: 10, fields: { t: 1, name: 1 } }).observeChanges
subHandleRooms = RocketChat.models.Rooms.findByNameContainingAndTypes(selector.name.$regex, ['c'], { limit: 10, fields: { t: 1, name: 1 }, sort: {name: 1}}).observeChanges
added: (id, fields) ->
data = { type: 'r', rid: id, name: fields.name, t: fields.t }
self.added("autocompleteRecords", id, data)
......
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