There was an error while loading. Please reload this page.
2 parents b142dcf + f46514d commit b25a50bCopy full SHA for b25a50b
1 file changed
lib/Controller/AttachmentApiController.php
@@ -48,7 +48,7 @@ public function display(int $cardId, int $attachmentId, string $type = 'deck_fil
48
#[CORS]
49
#[NoCSRFRequired]
50
public function create(int $cardId, string $type, ?string $data): DataResponse {
51
- $attachment = $this->attachmentService->create($cardId, $type, $data);
+ $attachment = $this->attachmentService->create($cardId, $type, $data ?? '');
52
return new DataResponse($attachment, HTTP::STATUS_OK);
53
}
54
0 commit comments