Test fixes
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled

This commit is contained in:
Dennis Eichhorn 2024-05-16 02:14:54 +00:00
parent bdaf777637
commit 903964d70e
8 changed files with 21 additions and 21 deletions

View File

@ -107,11 +107,13 @@ final class ApiController extends Controller
$accounts[] = $card->createdBy->id;
}
if ($card->commentList !== null) {
foreach ($card->commentList->comments as $element) {
if ($element->createdBy->id !== $comment->createdBy->id) {
$accounts[] = $element->createdBy->id;
}
}
}
foreach ($accounts as $account) {
$notification = new Notification();
@ -456,7 +458,14 @@ final class ApiController extends Controller
public function apiCommentCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
{
$this->app->moduleManager->get('Comment', 'Api')->apiCommentCreate($request, $response, $data);
$comment = $response->getDataArray($request->uri->__toString())['response'];
$comment = $response->getDataArray($request->uri->__toString())['response'] ?? null;
if ($comment === null) {
$response->header->status = RequestStatusCode::R_400;
$this->createInvalidCreateResponse($request, $response, $comment);
return;
}
$this->createCommentNotifications($comment, $request);
}

View File

@ -1,5 +0,0 @@
# Structure
## ER
![ER](Modules/Kanban/Docs/Dev/img/er.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

View File

@ -19,7 +19,3 @@ Other modules that work great with this one together are:
* [Tasks](Tasks)
* [ProjectManagement](ProjectManagement)
* [EventManagement](EventManagement)
# Dependencies
* [Editor](Editor)

View File

@ -12,7 +12,7 @@
},
"creator": {
"name": "Jingga",
"website": "jingga.app"
"website": "https://jingga.app"
},
"description": "Kanban module.",
"directory": "Kanban",