Skip to content

Commit 950ccf9

Browse files
fixes man
1 parent 16e07be commit 950ccf9

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"eslint": "eslint server/. test/. --config .eslintrc.json",
3939
"start": "concurrently 'mongod' 'wait-on tcp:27017 && NODE_ENV=production node server/'",
4040
"start-win": "concurrently \"mongod\" \"wait-on tcp:27017 &&SET NODE_ENV=production&& node server/\"",
41-
"dev": "npm run clear && concurrently 'mongod --dbpath data' 'wait-on tcp:27017 && NODE_ENV=development nodemon --inspect server/'",
41+
"dev": "npm run clear && concurrently 'mongod --dbpath data --quiet' 'wait-on tcp:27017 && NODE_ENV=development nodemon --inspect server/'",
4242
"dev-win": "npm run clear && concurrently \"mongod --dbpath data\" \"wait-on tcp:27017&&SET NODE_ENV=development&& nodemon --inspect server/\"",
4343
"dev-noseed": "concurrently 'mongod --dbpath data' 'wait-on tcp:27017 && NODE_ENV=development nodemon --inspect server/'",
4444
"dev-win-noseed": "concurrently \"mongod --dbpath data\" \"wait-on tcp:27017 && nodemon --inspect server/\"",

server/services/follows/follows.hooks.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,24 @@ const { authenticate } = require('feathers-authentication').hooks;
44

55
module.exports = {
66
before: {
7-
all: [authenticate('jwt')],
7+
all: [],
88
find: [],
99
get: [],
1010
create: [
11+
authenticate('jwt'),
1112
when(isProvider('external'), [
1213
hooks.queryWithCurrentUser()
1314
])
1415
],
15-
update: [],
16-
patch: [],
17-
remove: []
16+
update: [
17+
authenticate('jwt')
18+
],
19+
patch: [
20+
authenticate('jwt')
21+
],
22+
remove: [
23+
authenticate('jwt')
24+
]
1825
},
1926

2027
after: {

server/services/users/users.hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ module.exports = {
6868
before: {
6969
all: [],
7070
find: [],
71-
get: [ /* ...restrict */ ],
71+
get: [],
7272
create: [
7373
hashPassword(),
7474
lowerCase('email', 'username'),

0 commit comments

Comments
 (0)