Skip to content

Commit

Permalink
Aftral: [premieroctet#132] Search pattern is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sebaauvray committed Sep 20, 2024
1 parent 20bb1ca commit 8349ada
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const SearchSchema = new Schema({
pattern: {
type: String,
set: v => v?.trim(),
required: [true, `Le texte de recherche est obligatoire`],
required: false,
},
blocks: [{
type: Schema.Types.ObjectId,
Expand Down

0 comments on commit 8349ada

Please sign in to comment.