Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(registry:search)
  • Loading branch information
mkucharz committed Jan 28, 2018
commit eacf8207740fec2cab01acfb2b82855195a563e0
3 changes: 1 addition & 2 deletions packages/registry/syncano/registry/src/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default async (ctx) => {
const allSocketsDict = {}
const responseObj = {}
let socketsGroupsStore = null
let userObj = null

const getSocketDetails = async (socket) => {
debug(`Getting details for socket: ${socket.name}`)
Expand Down Expand Up @@ -69,7 +68,7 @@ export default async (ctx) => {
debug(`Found ${group.length} sockets in a group`)
group.forEach(socket => {
// That way we will have always newest version on top
if (!socket.private || (userObj && socket.owner_account === user.id)) {
if (!socket.private || (socket.owner_account === user.id)) {
allSocketsDict[socket.name] = socket
}
})
Expand Down