Skip to content

Commit d8b0e65

Browse files
fix: broken upload of attachment via api
fixes an issue raised in 5cf4861 as `$data` is not required but was marked as required. Signed-off-by: Somebodyisnobody <35230554+Somebodyisnobody@users.noreply.github.com>
1 parent 8e8173b commit d8b0e65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Controller/AttachmentApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function display(int $cardId, int $attachmentId, string $type = 'deck_fil
4747
#[NoAdminRequired]
4848
#[CORS]
4949
#[NoCSRFRequired]
50-
public function create(int $cardId, string $type, string $data): DataResponse {
50+
public function create(int $cardId, string $type, ?string $data): DataResponse {
5151
$attachment = $this->attachmentService->create($cardId, $type, $data);
5252
return new DataResponse($attachment, HTTP::STATUS_OK);
5353
}

0 commit comments

Comments
 (0)