Skip to content

Commit

Permalink
Removing testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Rockwood committed Jan 24, 2017
1 parent 3334b60 commit c097fad
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions commands/database-profile.js
Expand Up @@ -28,7 +28,7 @@ module.exports = new Command('database:profile')
.option('--raw', 'output the raw stats collected as newline delimited json')
.option('-i, --input <filename>', 'generate the report based on the specified file instead ' +
'of streaming logs from the database')
// .before(requireAccess)
.before(requireAccess)
.action(function(options) {

// Validate options
Expand All @@ -43,7 +43,6 @@ module.exports = new Command('database:profile')
}

var url = utils.addSubdomain(api.realtimeOrigin, options.instance) + '/.settings/profile.json?';
url = "http://tests.fblocal.com:9000/.settings/profile.json?";

var rl = readline.createInterface({
input: process.stdin
Expand All @@ -56,8 +55,7 @@ module.exports = new Command('database:profile')
}
};

//return api.addRequestHeaders(reqOptions).then(function(reqOptionsWithToken) {
var reqOptionsWithToken = reqOptions; // TODO(rockwood): Remove
return api.addRequestHeaders(reqOptions).then(function(reqOptionsWithToken) {
return new RSVP.Promise(function(resolve, reject) {
var fileOut = !!options.output;
var tmpFile = tmp.tmpNameSync();
Expand Down Expand Up @@ -143,5 +141,5 @@ module.exports = new Command('database:profile')
rl.question('', generateReport);
}
});
//});
});
});

0 comments on commit c097fad

Please sign in to comment.