Skip to content

Commit

Permalink
Search fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Boldizsar Mezei committed Dec 13, 2023
1 parent c5716d8 commit 0d645d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/search/src/getMany.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const getManySchema = Joi.object({
dataset: Joi.string()
.equal(...Object.values(Dataset))
.required(),
setId: CommonJoi.uid(false),
setId: CommonJoi.uid(false, 5),
subset: Joi.string()
.equal(...Object.values(Subset))
.optional(),
Expand Down
2 changes: 1 addition & 1 deletion packages/search/src/getManyAdvanced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const getManyAdvancedSchema = Joi.object({
dataset: Joi.string()
.equal(...Object.values(Dataset))
.required(),
setId: CommonJoi.uid(false),
setId: CommonJoi.uid(false, 5),
subset: Joi.string()
.equal(...Object.values(Subset))
.optional(),
Expand Down
4 changes: 2 additions & 2 deletions packages/search/src/getUpdatedAfter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const getUpdatedAfterSchema = Joi.object({
dataset: Joi.string()
.equal(...Object.values(Dataset))
.required(),
setId: CommonJoi.uid(false),
subCollection: Joi.string()
setId: CommonJoi.uid(false, 5),
subset: Joi.string()
.equal(...Object.values(Subset))
.optional(),
updatedAfter: Joi.number().min(0).max(MAX_MILLISECONDS).integer().optional(),
Expand Down

0 comments on commit 0d645d1

Please sign in to comment.