aboutsummaryrefslogtreecommitdiff
path: root/models/polls/poll.schema.ts
diff options
context:
space:
mode:
Diffstat (limited to 'models/polls/poll.schema.ts')
-rw-r--r--models/polls/poll.schema.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/polls/poll.schema.ts b/models/polls/poll.schema.ts
index 83de688..bc6d497 100644
--- a/models/polls/poll.schema.ts
+++ b/models/polls/poll.schema.ts
@@ -1,5 +1,5 @@
import { Document, Schema, Types } from 'mongoose';
-import { User } from '../users/user.schema'
+import { User } from '../users/user.schema';
export interface ImageData {
url: string;
@@ -22,14 +22,14 @@ export interface PollSchema extends Document, Omit<Poll, 'author'> {
const imageDataSchema = {
url: String,
votes: Number
-}
+};
export const pollSchema = new Schema({
contents: {
left: imageDataSchema,
right: imageDataSchema
},
- authorId: {
+ authorId: {
type: Types.ObjectId,
ref: 'User'
}