 		, (err, response, body) ->
 			items = JSON.parse(body)
 			items.forEach (item) ->
-				getUserOrCreateUser (item.author.login, user) ->
+				getUserOrCreateUser item.author.login, (err, user) ->
 					commit = new db.Commit
 						sha: item.sha
 						author: user._id

		githubApi
			url: "/repos/#{repo.full_name}/commits/#{commit.sha}"
		, (err, response, body) ->

exports.startJobs = ->
	setInterval ( ->

request = require "request"
async = require "async"
db = require "./db"
mapper = require "./mapper"

globals =
	searchRequestsPerMinute: 20
