aboutsummaryrefslogtreecommitdiff
path: root/models/polls/poll.schema.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-21 14:29:59 +0300
committereug-vs <eug-vs@keemail.me>2020-06-21 14:30:55 +0300
commite99b51895afd532a529744396ecae87d47c68503 (patch)
treeb5c1ebc0f364d8e11ddad0f27b57340d45b44bb1 /models/polls/poll.schema.ts
parentf4c4f2d4789880c0cfc956d08aab10b5a93ebcb1 (diff)
downloadwhich-api-e99b51895afd532a529744396ecae87d47c68503.tar.gz
feat: change hooks and install which-types
Diffstat (limited to 'models/polls/poll.schema.ts')
-rw-r--r--models/polls/poll.schema.ts15
1 files changed, 0 insertions, 15 deletions
diff --git a/models/polls/poll.schema.ts b/models/polls/poll.schema.ts
index 236011f..fd6751c 100644
--- a/models/polls/poll.schema.ts
+++ b/models/polls/poll.schema.ts
@@ -1,19 +1,4 @@
import { Document, Schema, Types } from 'mongoose';
-import { User } from '../users/user.schema';
-
-export interface ImageData {
- url: string;
- votes: number;
-}
-
-export interface Poll {
- _id: string;
- author: User;
- contents: {
- left: ImageData;
- right: ImageData;
- };
-}
export interface ImageDataSchema {
url: string;