fixe
This commit is contained in:
parent
297b8c2a70
commit
fa253e11ca
|
@ -847,7 +847,7 @@ class ChatController extends BaseController
|
|||
private function add_memory($keywords, $content)
|
||||
{
|
||||
try {
|
||||
$user = (!Helper::isCLI() && Auth::check()) ? Auth::user() : null;
|
||||
$user = (!Helper::isCLI() && Auth::check()) ? Auth::user()->username : null;
|
||||
$res = Memory::add($keywords, $content, $user);
|
||||
|
||||
if ($res) {
|
||||
|
|
Loading…
Reference in New Issue