mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42: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:
parent
a2fb91b8af
commit
c3be82fe6e
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ final class PholioMock extends PholioDAO
|
|||
$this->openTransaction();
|
||||
$images = id(new PholioImageQuery())
|
||||
->setViewer($engine->getViewer())
|
||||
->withMockIDs(array($this->getPHID()))
|
||||
->withMockPHIDs(array($this->getPHID()))
|
||||
->execute();
|
||||
foreach ($images as $image) {
|
||||
$image->delete();
|
||||
|
|
Loading…
Reference in a new issue