aboutsummaryrefslogtreecommitdiff
path: root/models/votes/vote.schema.ts
diff options
context:
space:
mode:
Diffstat (limited to 'models/votes/vote.schema.ts')
-rw-r--r--models/votes/vote.schema.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/votes/vote.schema.ts b/models/votes/vote.schema.ts
index 36b38f2..709e8bf 100644
--- a/models/votes/vote.schema.ts
+++ b/models/votes/vote.schema.ts
@@ -16,7 +16,7 @@ export const voteSchema = new Schema({
},
which: {
type: String,
- match: /left|right/g
+ enum: ['left', 'right']
}
}, { timestamps: true });