remove extraneous body parameter

This commit is contained in:
Shane Kilkelly 2016-08-01 09:06:02 +01:00
parent 39fc611964
commit 7a8142a43c
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ describe "ProjectInviteTests", ->
Async.series [
(cb) => @user.login cb
(cb) => @sendingUser.login cb
(cb) => @sendingUser.createProject(@projectName, (err, projectId, project) =>
(cb) => @sendingUser.createProject(@projectName, (err, projectId) =>
throw err if err
@projectId = projectId
@fakeProject = {

View file

@ -60,7 +60,7 @@ class User
return callback(error) if error?
if !body?.project_id?
console.error "SOMETHING WENT WRONG CREATING PROJECT", response.statusCode, response.headers["location"], body
callback(null, body.project_id, body)
callback(null, body.project_id)
deleteProject: (project_id, callback=(error)) ->
@request.delete {