message Service added

This commit is contained in:
amazuecos
2025-02-16 08:10:07 +00:00
parent 4364bc3c07
commit 47fa27402f
4 changed files with 15 additions and 3 deletions

View File

@ -766,4 +766,11 @@ class ChatController extends BaseController
$this->chatModel->setAsUnviewedChatUserNotifications($chat_id, auth()->user()->id);
return $this->response->setJSON(["message" => "ok", "status" => true]);
}
public function store_chat_error_message()
{
$bodyData = $this->request->getPost();
$messageService = service('messages');
$r = $messageService->createErrorMessagePresupuesto("Error",$bodyData['presupuesto_id']);
return $this->response->setJSON(["message" => "ok","data" => $r]);
}
}