mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 04:50:55 +01:00
Fix systemAgent stuff.
This commit is contained in:
parent
21d522d9fe
commit
bed2120b86
2 changed files with 8 additions and 2 deletions
|
@ -119,7 +119,13 @@ class PhabricatorConduitAPIController
|
||||||
$log->setConnectionID($connection_id);
|
$log->setConnectionID($connection_id);
|
||||||
$log->setError((string)$error_code);
|
$log->setError((string)$error_code);
|
||||||
$log->setDuration(1000000 * ($time_end - $time_start));
|
$log->setDuration(1000000 * ($time_end - $time_start));
|
||||||
|
|
||||||
|
// TODO: This is a hack, but the insert is comparatively expensive and
|
||||||
|
// we only really care about having these logs for real CLI clients, if
|
||||||
|
// even that.
|
||||||
|
if (empty($metadata['authToken'])) {
|
||||||
$log->save();
|
$log->save();
|
||||||
|
}
|
||||||
|
|
||||||
$result = array(
|
$result = array(
|
||||||
'result' => $result,
|
'result' => $result,
|
||||||
|
|
|
@ -34,7 +34,7 @@ class PhabricatorUser extends PhabricatorUserDAO {
|
||||||
|
|
||||||
protected $conduitCertificate;
|
protected $conduitCertificate;
|
||||||
|
|
||||||
protected $isSystemAgent;
|
protected $isSystemAgent = 0;
|
||||||
|
|
||||||
private $preferences = null;
|
private $preferences = null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue