diff options
Diffstat (limited to 'services')
| -rw-r--r-- | services/polls/polls.service.ts | 4 | ||||
| -rw-r--r-- | services/profiles/profiles.class.ts | 8 | ||||
| -rw-r--r-- | services/profiles/profiles.hooks.ts | 4 | ||||
| -rw-r--r-- | services/profiles/profiles.service.ts | 2 | ||||
| -rw-r--r-- | services/users/users.service.ts | 2 | 
5 files changed, 10 insertions, 10 deletions
diff --git a/services/polls/polls.service.ts b/services/polls/polls.service.ts index 9635adf..38b701f 100644 --- a/services/polls/polls.service.ts +++ b/services/polls/polls.service.ts @@ -1,7 +1,7 @@  import { Application } from '@feathersjs/express'; -import Model from '../../models/polls/poll.model';  import service from 'feathers-mongoose'; -import hooks from './polls.hooks' +import Model from '../../models/polls/poll.model'; +import hooks from './polls.hooks';  const PollService = service({ Model }); diff --git a/services/profiles/profiles.class.ts b/services/profiles/profiles.class.ts index 8954f74..52d6b47 100644 --- a/services/profiles/profiles.class.ts +++ b/services/profiles/profiles.class.ts @@ -1,9 +1,9 @@ -import { Poll, PollSchema } from "../../models/polls/poll.schema"; +import { PollSchema } from '../../models/polls/poll.schema';  import PollModel from '../../models/polls/poll.model';  export default class Profiles { -  async get(id: string, params: any): Promise<PollSchema[]> { -    return PollModel.find({ authorId: id }).lean<Poll>(); +  async get(id: string): Promise<PollSchema[]> { +    return PollModel.find({ authorId: id }).lean();    } -}; +} diff --git a/services/profiles/profiles.hooks.ts b/services/profiles/profiles.hooks.ts index b022aff..bb05d94 100644 --- a/services/profiles/profiles.hooks.ts +++ b/services/profiles/profiles.hooks.ts @@ -1,10 +1,10 @@  import { -  expandAuthorManyHook, +  expandAuthorManyHook  } from '../../hooks/expandAuthor';  export default {    after: { -    get: [expandAuthorManyHook], +    get: [expandAuthorManyHook]    }  }; diff --git a/services/profiles/profiles.service.ts b/services/profiles/profiles.service.ts index 3422352..e860426 100644 --- a/services/profiles/profiles.service.ts +++ b/services/profiles/profiles.service.ts @@ -1,4 +1,4 @@ -import { Application } from "@feathersjs/express"; +import { Application } from '@feathersjs/express';  import Profiles from './profiles.class';  import hooks from './profiles.hooks'; diff --git a/services/users/users.service.ts b/services/users/users.service.ts index 47dac3d..988d162 100644 --- a/services/users/users.service.ts +++ b/services/users/users.service.ts @@ -1,6 +1,6 @@  import { Application } from '@feathersjs/express'; -import Model from '../../models/users/user.model';  import service from 'feathers-mongoose'; +import Model from '../../models/users/user.model';  const UserService = service({ Model });  |