Skip to content

Commit fca2bf2

Browse files
Somebodyisnobodybackportbot[bot]
authored andcommitted
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 8ed6725 commit fca2bf2

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
@@ -46,7 +46,7 @@ public function display(int $cardId, int $attachmentId, string $type = 'deck_fil
4646
#[NoAdminRequired]
4747
#[CORS]
4848
#[NoCSRFRequired]
49-
public function create(int $cardId, string $type, string $data): DataResponse {
49+
public function create(int $cardId, string $type, ?string $data): DataResponse {
5050
$attachment = $this->attachmentService->create($cardId, $type, $data);
5151
return new DataResponse($attachment, HTTP::STATUS_OK);
5252
}

0 commit comments

Comments
 (0)