diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-25 09:03:46 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-25 09:39:44 +0300 |
commit | fc9cf3b8f77e9068fa51d614b0d0b120f7bf2440 (patch) | |
tree | 66485a3f34a3a1d77b337edd880e2560205f2b8b /models | |
parent | ffcb9d248228087ee05c7569784705b41d729aee (diff) | |
download | which-api-fc9cf3b8f77e9068fa51d614b0d0b120f7bf2440.tar.gz |
feat!: construct VoteService based on VoteModel
Diffstat (limited to 'models')
-rw-r--r-- | models/polls/poll.schema.ts | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/models/polls/poll.schema.ts b/models/polls/poll.schema.ts index 2f39aa1..4d1d762 100644 --- a/models/polls/poll.schema.ts +++ b/models/polls/poll.schema.ts @@ -2,7 +2,6 @@ import { Document, Schema, Types } from 'mongoose'; export interface ImageDataSchema { url: string; - votes: string[]; } export interface PollSchema extends Document { @@ -17,12 +16,6 @@ export interface PollSchema extends Document { export const imageDataSchema = { url: String, - votes: [ - { - type: Types.ObjectId, - ref: 'vote' - } - ] }; export const pollSchema = new Schema({ |