diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-23 22:50:59 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-23 22:50:59 +0300 |
commit | dbfb0d30f0e5cd44ea188d72ceb05acac2ac40d7 (patch) | |
tree | 8372becdf6de9cb0bd98899ec8608eaa3143ff0d /models/polls/poll.schema.ts | |
parent | 5255b85532f2e2709b31e891a167c1a250a0aa7e (diff) | |
download | which-api-dbfb0d30f0e5cd44ea188d72ceb05acac2ac40d7.tar.gz |
feat: only allow voting once
Diffstat (limited to 'models/polls/poll.schema.ts')
-rw-r--r-- | models/polls/poll.schema.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/polls/poll.schema.ts b/models/polls/poll.schema.ts index 0caa6b2..380c069 100644 --- a/models/polls/poll.schema.ts +++ b/models/polls/poll.schema.ts @@ -11,7 +11,7 @@ export interface PollSchema extends Document { right: ImageDataSchema; }; authorId: string; - vote: (userId: string, which: 'left' | 'right') => void; + vote: (userId: string, which: 'left' | 'right') => PollSchema; } export const imageDataSchema = { |