aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-06-25 18:56:55 +0300
committerGitHub <noreply@github.com>2020-06-25 18:56:55 +0300
commit343a975413d8d3ce8194507017fb4ca01a4faf54 (patch)
treebdf1ebf9113739bfb08cd61239c117d02e273fe7 /services
parent32e9cd6eec8f45fd9b53c8ab3af5907c8d4064bc (diff)
parent7bf3e5020bf456b1450bb19bea43df7862cfb08e (diff)
downloadwhich-api-343a975413d8d3ce8194507017fb4ca01a4faf54.tar.gz
Merge pull request #10 from which-ecosystem/circleci
Configure CI
Diffstat (limited to 'services')
-rw-r--r--services/index.ts2
-rw-r--r--services/polls/polls.hooks.ts2
-rw-r--r--services/users/users.hooks.ts2
-rw-r--r--services/votes/votes.hooks.ts2
4 files changed, 4 insertions, 4 deletions
diff --git a/services/index.ts b/services/index.ts
index fe5ffdc..ce20901 100644
--- a/services/index.ts
+++ b/services/index.ts
@@ -18,6 +18,6 @@ export default (app: Application): void => {
before: {
all: tryAuthenticate
}
- })
+ });
};
diff --git a/services/polls/polls.hooks.ts b/services/polls/polls.hooks.ts
index eba3e63..13d6f63 100644
--- a/services/polls/polls.hooks.ts
+++ b/services/polls/polls.hooks.ts
@@ -2,7 +2,7 @@ import convertPoll from '../../hooks/convertPoll';
export default {
after: {
- all: [convertPoll],
+ all: [convertPoll]
}
};
diff --git a/services/users/users.hooks.ts b/services/users/users.hooks.ts
index 8eecca3..ee1ae1c 100644
--- a/services/users/users.hooks.ts
+++ b/services/users/users.hooks.ts
@@ -6,7 +6,7 @@ const hashPassword = hooks.hashPassword('password');
const localDispatch = async (context: HookContext): Promise<HookContext> => {
context.result = context.dispatch;
return context;
-}
+};
export default {
after: {
diff --git a/services/votes/votes.hooks.ts b/services/votes/votes.hooks.ts
index 1cf7261..7d0b3ba 100644
--- a/services/votes/votes.hooks.ts
+++ b/services/votes/votes.hooks.ts
@@ -2,7 +2,7 @@ import { HookContext } from '@feathersjs/feathers';
import requireAuth from '../../hooks/requireAuth';
const addUserId = async (context: HookContext): Promise<HookContext> => {
- const { params: { user} } = context;
+ const { params: { user } } = context;
context.data.userId = user._id;
return context;
};