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

Connect streams ordered by more recents

parent 18bfbebe
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
# connections = {}
InstanceStatus.getCollection().find({'extraInformation.port': {$exists: true}}).observe
InstanceStatus.getCollection().find({'extraInformation.port': {$exists: true}}, {sort: {_createdAt: -1}}).observe
added: (record) ->
if record.extraInformation.port is process.env.PORT or connections[record.extraInformation.port]?
return
......
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