api resource refactoring

This commit is contained in:
Peter Papp
2021-08-27 09:41:14 +02:00
parent 5c6a873b02
commit e0e060e5a1
22 changed files with 173 additions and 79 deletions

View File

@@ -15,7 +15,7 @@ class UpdateFolderPropertyAction
$folder = Folder::find($id);
// Set default folder icon
if ($request->emoji === 'default') {
if ($request->input('emoji') === 'default') {
$folder->update([
'emoji' => null,
'color' => null,