Skip to content

Commit 2e28a25

Browse files
committed
feat: change match to enum in voteSchema
1 parent fc9cf3b commit 2e28a25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/votes/vote.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const voteSchema = new Schema({
1616
},
1717
which: {
1818
type: String,
19-
match: /left|right/g
19+
enum: ['left', 'right']
2020
}
2121
}, { timestamps: true });
2222

0 commit comments

Comments
 (0)