Skip to content

Commit

Permalink
fix(folder): prevent listing folders failure when no plain name folde…
Browse files Browse the repository at this point in the history
…rs are listed,

- Converting Folder objects into plain JSONs breaks the listing usecase
  • Loading branch information
sg-gs committed Sep 25, 2024
1 parent d4b72be commit 121d8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/folder/folder.usecase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ export class FolderUseCases {
...folder,
name: decryptedName,
plainName: decryptedName,
}).toJSON();
});
}

async deleteByUser(user: User, folders: Folder[]): Promise<void> {
Expand Down

0 comments on commit 121d8d5

Please sign in to comment.