Rename some api parameters.

This commit is contained in:
Matias De lellis
2020-09-19 11:56:54 -03:00
parent 119b90da42
commit 3807b83796
4 changed files with 21 additions and 28 deletions

View File

@@ -116,13 +116,14 @@ class NoteApiController extends ApiController {
* @param int $id
* @param string $title
* @param string $content
* @param array $attachts
* @param bool $pinned
* @param array $attachments
* @param bool $isPinned
* @param array $tags
* @param array $sharedWith
* @param string $color
*/
public function update(int $id, string $title, string $content, array $attachts, bool $pinned, array $tags, string $color = "#F7EB96"): JSONResponse {
$note = $this->noteService->update($this->userId, $id, $title, $content, $attachts, $pinned, $tags, $color);
public function update(int $id, string $title, string $content, array $attachments, bool $isPinned, array $tags, array $sharedWith, string $color): JSONResponse {
$note = $this->noteService->update($this->userId, $id, $title, $content, $attachments, $isPinned, $tags, $sharedWith, $color);
if (is_null($note)) {
return new JSONResponse([], Http::STATUS_NOT_FOUND);
}