* Adjust server delete function name.

This commit is contained in:
caoyanyi
2023-11-27 09:29:07 +08:00
parent 2d2954bb38
commit 3f1903b3dc
8 changed files with 50 additions and 44 deletions
+2 -2
View File
@@ -493,7 +493,7 @@ class instance extends control
if(!commonModel::hasPriv('instance', 'manage')) $this->loadModel('common')->deny('instance', 'manage', false);
$oldApp = $this->loadModel('pipeline')->getByID($externalID);
$actionID = $this->pipeline->delete($externalID, $oldApp->type);
$actionID = $this->pipeline->deleteByObject($externalID, $oldApp->type);
if(!$actionID)
{
$response['result'] = 'fail';
@@ -642,7 +642,7 @@ class instance extends control
$externalApp = $this->loadModel('space')->getExternalAppByApp($instance);
if($externalApp)
{
$actionID = $this->loadModel('pipeline')->delete($externalApp->id, strtolower($instance->appName));
$actionID = $this->loadModel('pipeline')->deleteByObject($externalApp->id, strtolower($instance->appName));
if(!$actionID) return $this->send(array('result' => 'fail', 'message' => $this->lang->pipeline->delError));
}