   throw err if err
   queue.push teams
 
-queue.drain = ->
-  mongoose.connection.close()
-  console.log 'done'
+queue.drain = -> mongoose.connection.close()

async = require 'async'
request = require 'request'

url = "https://visnup:#{process.env.PASSWORD}@api.github.com"

Team = mongoose.model 'Team'
Person = mongoose.model 'Person'

      , next
    (res, body, next) ->      # save team id
      team.github = body if body.id
      unless team.github
        console.warn "Proceeding without accurate GitHub team id"
        team.github = { id: 0 }
      team.save next
    (team, n, next) ->        # get people
      Person.find { _id: { $in: team.peopleIds } }, (err, people) ->
