We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc9cf3b commit 2e28a25Copy full SHA for 2e28a25
models/votes/vote.schema.ts
@@ -16,7 +16,7 @@ export const voteSchema = new Schema({
16
},
17
which: {
18
type: String,
19
- match: /left|right/g
+ enum: ['left', 'right']
20
}
21
}, { timestamps: true });
22
0 commit comments