1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 10:12:41 +01:00

Fix an out-of-date API call on the destruction pathway for Pholio mocks

Summary:
See <https://discourse.phabricator-community.org/t/destroying-a-mock-using-bin-remove-destroy-mx-gives-an-error/3728>.

Currently, Pholio calls an older API method on the mock destruction pathway. This call was introduced in D19911 but the callsite was only partially updated in D19914.

Test Plan: Ran "bin/remove destroy Mx" to destroy a mock. Before: fatal with a bad call; after: clean destruction.

Differential Revision: https://secure.phabricator.com/D21081
This commit is contained in:
epriestley 2020-04-10 07:56:37 -07:00
parent a2fb91b8af
commit c3be82fe6e

View file

@ -225,7 +225,7 @@ final class PholioMock extends PholioDAO
$this->openTransaction(); $this->openTransaction();
$images = id(new PholioImageQuery()) $images = id(new PholioImageQuery())
->setViewer($engine->getViewer()) ->setViewer($engine->getViewer())
->withMockIDs(array($this->getPHID())) ->withMockPHIDs(array($this->getPHID()))
->execute(); ->execute();
foreach ($images as $image) { foreach ($images as $image) {
$image->delete(); $image->delete();