Skip to content

Commit

Permalink
Merge pull request #458 from internxt/fix/remove-create-folders-with-…
Browse files Browse the repository at this point in the history
…no-parent-id

[_]: fix/remove-create-folders-with-no-parent-id
  • Loading branch information
sg-gs authored Sep 19, 2024
2 parents 46d90c4 + c3abc3a commit a38cbd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/services/folder.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = (Model, App) => {

// 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
if (parentFolderId >= 2147483648) {
if (!parentFolderId || isNaN(parentFolderId) || parentFolderId >= 2147483648) {
throw Error('Invalid parent folder');
}
// parent folder is yours?
Expand Down

0 comments on commit a38cbd0

Please sign in to comment.