Skip to content

Commit

Permalink
required or
Browse files Browse the repository at this point in the history
  • Loading branch information
mudroljub committed Jul 15, 2019
1 parent be478b4 commit 03f1a0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/QuoteSchema.js
Expand Up @@ -8,11 +8,12 @@ const Quote = {
},
en: {
type: String,
required: true,
required() { return !this.sr },
trim: true
},
sr: {
type: String,
required() { return !this.en },
trim: true,
},
source: {
Expand Down

0 comments on commit 03f1a0f

Please sign in to comment.