diff --git a/bz.js b/bz.js index ec562ec..59b94f1 100644 --- a/bz.js +++ b/bz.js @@ -3,8 +3,8 @@ var BugzillaClient = function(options) { this.username = options.username; this.password = options.password; this.apiUrl = options.url || - (options.test ? "https://api-dev.bugzilla.mozilla.org/test/latest/" - : "https://api-dev.bugzilla.mozilla.org/latest/"); + (options.test ? "https://bugzilla-dev.allizom.org/bzapi" + : "https://bugzilla.mozilla.org/bzapi"); } BugzillaClient.prototype = { diff --git a/index.js b/index.js index c1052b0..f771fec 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ var fs = require('fs'), - bz = require('bz'), + bz = require('./bz'), crypto = require('crypto'), execSync = require('execSync'), mozilliansAPI = require('./lib/mozillians.js'); @@ -182,13 +182,5 @@ if (execResult.code != 0) { process.exit(1); } -// copy our copy of bz.js -var execResult = execSync.exec('cp bz.js node_modules/bz/'); -if (execResult.code != 0) { - // Command failed - console.log(execResult.stderr); - process.exit(1); -} - // Start already! loadUsers();