aboutsummaryrefslogtreecommitdiff
path: root/models/votes/vote.schema.ts
diff options
context:
space:
mode:
Diffstat (limited to 'models/votes/vote.schema.ts')
-rw-r--r--models/votes/vote.schema.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/models/votes/vote.schema.ts b/models/votes/vote.schema.ts
index 63ba212..72b196d 100644
--- a/models/votes/vote.schema.ts
+++ b/models/votes/vote.schema.ts
@@ -1,12 +1,10 @@
import { Document, Schema, Types } from 'mongoose';
import { Vote } from 'which-types';
-export interface VoteSchema extends Document, Omit<Vote, '_id'> {
- password: string;
-}
+export interface VoteSchema extends Document, Omit<Vote, '_id'> {}
export const voteSchema = new Schema({
- userId: {
+ authorId: {
type: Types.ObjectId,
ref: 'user',
required: true