Skip to content

Commit

Permalink
Fix validation for parentId and collectionId (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey-weber authored Dec 29, 2023
1 parent add594b commit 38242ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/new/collection/move-collections-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const validateArgs = makeSchemaValidator({
items: {type: 'string'},
},
parentId: {
type: 'string',
type: ['string', 'null'],
},
},
});
Expand Down
2 changes: 1 addition & 1 deletion src/services/new/workbook/move-workbooks-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const validateArgs = makeSchemaValidator({
items: {type: 'string'},
},
collectionId: {
type: 'string',
type: ['string', 'null'],
},
},
});
Expand Down

0 comments on commit 38242ab

Please sign in to comment.