1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00

Make "bin/audit synchronize" actually save changes

Summary: Ref T10978. Although this script prints out some very good changes, it does not currently persist them to the database.

Test Plan: Ran `bin/audit synchronize`, saw the change appear both on the CLI and in the database.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10978

Differential Revision: https://secure.phabricator.com/D17276
This commit is contained in:
epriestley 2017-01-31 12:03:15 -08:00
parent 2a527a51f2
commit a3417ccd78

View file

@ -44,12 +44,14 @@ final class PhabricatorAuditSynchronizeManagementWorkflow
echo tsprintf(
"%s\n",
pht(
'Updated "%s": "%s" -> "%s".',
'Updating "%s": "%s" -> "%s".',
$commit->getDisplayName(),
PhabricatorAuditCommitStatusConstants::getStatusName(
$old_status),
PhabricatorAuditCommitStatusConstants::getStatusName(
$new_status)));
$commit->save();
}
}
}