Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[_]: fix/remove-create-folders-with-no-parent-id #458

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/services/folder.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
};

// Create folder entry, for desktop
const Create = async (user, folderName, parentFolderId, teamId = null, uuid = null) => {

Check warning on line 58 in src/app/services/folder.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'teamId' is assigned a value but never used

Check warning on line 58 in src/app/services/folder.js

View workflow job for this annotation

GitHub Actions / run-tests (16.x)

'teamId' is assigned a value but never used
if (parentFolderId >= 2147483648) {
if (!parentFolderId || isNaN(parentFolderId) || parentFolderId >= 2147483648) {
throw Error('Invalid parent folder');
}
// parent folder is yours?
Expand Down
Loading