Fix pin notes with grid icon..

This commit is contained in:
Matias De lellis
2020-06-17 15:48:00 -03:00
parent ecfbcd42bc
commit d1587541c3
4 changed files with 13 additions and 13 deletions

View File

@@ -111,11 +111,11 @@ class NoteController extends Controller {
* @param array $attachts
* @param bool $pinned
* @param array $tags
* @param array $shares
* @param array $shared_with
* @param string $color
*/
public function update(int $id, string $title, string $content, array $attachts, bool $pinned, array $tags, array $shares, string $color = "#F7EB96"): JSONResponse {
$note = $this->noteService->update($this->userId, $id, $title, $content, $attachts, $pinned, $tags, $shares, $color);
public function update(int $id, string $title, string $content, array $attachts, bool $pinned, array $tags, array $shared_with, string $color = "#F7EB96"): JSONResponse {
$note = $this->noteService->update($this->userId, $id, $title, $content, $attachts, $pinned, $tags, $shared_with, $color);
if (is_null($note)) {
return new JSONResponse([], Http::STATUS_NOT_FOUND);
}