aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-28 18:56:14 +0300
committereug-vs <eug-vs@keemail.me>2020-06-28 18:56:14 +0300
commit00387d9ad38049db555cad7b5cb375167a108a6e (patch)
treefba5273a22bd7a19e797e42e8c803843960e81bf
parentc3438eb4a7187773e2736dea765bb8281f7edf0e (diff)
downloadwhich-api-00387d9ad38049db555cad7b5cb375167a108a6e.tar.gz
style: fix linting errors
-rw-r--r--models/feedback/feedback.model.ts2
-rw-r--r--models/votes/vote.schema.ts2
-rw-r--r--populateDb.ts7
-rw-r--r--services/feedback/feedback.hooks.ts1
4 files changed, 8 insertions, 4 deletions
diff --git a/models/feedback/feedback.model.ts b/models/feedback/feedback.model.ts
index b2ec4b5..793f8da 100644
--- a/models/feedback/feedback.model.ts
+++ b/models/feedback/feedback.model.ts
@@ -1,4 +1,4 @@
-import { Model, model, Types } from 'mongoose';
+import { Model, model } from 'mongoose';
import { FeedbackSchema, feedbackSchema } from './feedback.schema';
export default model<FeedbackSchema, Model<FeedbackSchema>>('Feedback', feedbackSchema);
diff --git a/models/votes/vote.schema.ts b/models/votes/vote.schema.ts
index d8128b3..72b196d 100644
--- a/models/votes/vote.schema.ts
+++ b/models/votes/vote.schema.ts
@@ -1,7 +1,7 @@
import { Document, Schema, Types } from 'mongoose';
import { Vote } from 'which-types';
-export interface VoteSchema extends Document, Omit<Vote, '_id'> {};
+export interface VoteSchema extends Document, Omit<Vote, '_id'> {}
export const voteSchema = new Schema({
authorId: {
diff --git a/populateDb.ts b/populateDb.ts
index 991c152..e25005d 100644
--- a/populateDb.ts
+++ b/populateDb.ts
@@ -1,7 +1,12 @@
import mongoose from 'mongoose';
import bluebird from 'bluebird';
import _ from 'lodash';
-import { User, Poll, Vote, Feedback } from 'which-types';
+import {
+ User,
+ Poll,
+ Vote,
+ Feedback
+} from 'which-types';
import app from './app';
diff --git a/services/feedback/feedback.hooks.ts b/services/feedback/feedback.hooks.ts
index 04f3af1..56e9000 100644
--- a/services/feedback/feedback.hooks.ts
+++ b/services/feedback/feedback.hooks.ts
@@ -1,4 +1,3 @@
-import { HookContext } from '@feathersjs/feathers';
import requireAuth from '../../hooks/requireAuth';
import signAuthority from '../../hooks/signAuthority';