* fix duplicate error messages.
This commit is contained in:
@@ -473,6 +473,8 @@ class ai extends control
|
||||
$prompt->desc = $data->desc;
|
||||
|
||||
$this->ai->updatePrompt($prompt, $originalPrompt);
|
||||
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
|
||||
|
||||
if(!empty($data->jumpToNext)) $this->ai->togglePromptStatus($prompt, 'active');
|
||||
|
||||
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
|
||||
|
||||
Reference in New Issue
Block a user