* Fixed errors of the edit a api.
This commit is contained in:
@@ -242,6 +242,8 @@ class apiModel extends model
|
||||
->where('id')->eq($apiID)
|
||||
->exec();
|
||||
|
||||
if(dao::isError()) return false;
|
||||
|
||||
$data->id = $apiID;
|
||||
$apiSpec = $this->getApiSpecByData($data);
|
||||
$this->dao->replace(TABLE_API_SPEC)->data($apiSpec)->exec();
|
||||
|
||||
Reference in New Issue
Block a user