aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/polls/poll.schema.ts7
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({