* Modify return type of tutorialModel::getTutorialed, and modify its unit test.

This commit is contained in:
liumengyi
2023-12-14 16:07:39 +08:00
parent 14ab3c6608
commit af83167fb0
4 changed files with 37 additions and 16 deletions
+2 -2
View File
@@ -466,9 +466,9 @@ class tutorialModel extends model
* Get tutorialed.
*
* @access public
* @return object
* @return string
*/
public function getTutorialed(): object
public function getTutorialed(): string
{
return $this->dao->select('*')->from(TABLE_CONFIG)->where('module')->eq('tutorial')->andWhere('owner')->eq($this->app->user->account)->andWhere('section')->eq('tasks')->andWhere('`key`')->eq('setting')->fetch('value');
}