1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Fix a typo in differential.querydiffs

Summary:
  - "revision" is misspelled.
  - Remove an unused variable.

Test Plan: Used API console to call method.

Reviewers: btrahan, chad

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D7184
This commit is contained in:
epriestley 2013-09-30 17:49:23 -07:00
parent b21f197a98
commit fc57995330

View file

@ -13,7 +13,7 @@ final class ConduitAPI_differential_querydiffs_Method
public function defineParamTypes() { public function defineParamTypes() {
return array( return array(
'ids' => 'optional list<uint>', 'ids' => 'optional list<uint>',
'revisonIDs' => 'optional list<uint>', 'revisionIDs' => 'optional list<uint>',
); );
} }
@ -28,8 +28,8 @@ final class ConduitAPI_differential_querydiffs_Method
protected function execute(ConduitAPIRequest $request) { protected function execute(ConduitAPIRequest $request) {
$ids = $request->getValue('ids', array()); $ids = $request->getValue('ids', array());
$revision_ids = $request->getValue('revisionIDs', array()); $revision_ids = $request->getValue('revisionIDs', array());
$diffs = array(); $diffs = array();
$diff_dicts = array();
if ($ids || $revision_ids) { if ($ids || $revision_ids) {
$diffs = id(new DifferentialDiffQuery()) $diffs = id(new DifferentialDiffQuery())
->setViewer($request->getUser()) ->setViewer($request->getUser())