* Adjust nexus type for database.

This commit is contained in:
caoyanyi
2023-10-18 16:29:14 +08:00
parent 6c684d6f7b
commit 98b44c50bc
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -996,6 +996,7 @@ class InstanceModel extends model
if($result->code != 200)
{
$this->dao->delete()->from(TABLE_INSTANCE)->where('id')->eq($instance->id)->exec();
dao::$errors['server'][] = $result->message;
return false;
}
@@ -2135,7 +2136,7 @@ class InstanceModel extends model
$pipeline = new stdclass();
$instance->type = $instance->chart;
$pipeline->type = $instance->type;
$pipeline->type = $instance->type == 'nexus3' ? 'nexus' : $instance->type;
$pipeline->private = md5(strval(rand(10,113450)));
$pipeline->createdBy = 'system';
$pipeline->createdDate = helper::now();