From 2e28a2555119c8958737e84fd2312e9930046242 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 25 Jun 2020 09:48:39 +0300 Subject: feat: change match to enum in voteSchema --- models/votes/vote.schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models') 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 }); -- cgit v1.2.3