File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 41
41
"dev:debug" : " npm run clear && concurrently '$npm_package_config_mongoDev' 'wait-on tcp:27017 && NODE_ENV=development nodemon --inspect server/'" ,
42
42
"dev" : " npm run clear && concurrently '$npm_package_config_mongoDev' 'wait-on tcp:27017 && NODE_ENV=development DEBUG=feathers nodemon server/'" ,
43
43
"dev:noseed" : " concurrently 'mongod --dbpath data' 'wait-on tcp:27017 && NODE_ENV=development DEBUG=feathers nodemon server/'" ,
44
- "dev:win" : " npm run clear && concurrently \" mongod --dbpath data\" \" wait-on tcp:27017&&SET NODE_ENV=development&&SET DEBUG=feathers&& nodemon --inspect server/\" " ,
44
+ "dev:win" : " npm run clear && concurrently \" mongod --dbpath / data/db \" \" wait-on tcp:27017&& cross-env NODE_ENV=development&& cross-env DEBUG=feathers&& nodemon --inspect server/\" " ,
45
45
"mocha" : " npm run clear && $npm_package_config_concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && NODE_ENV=test $npm_package_config_mocha'" ,
46
46
"coverage" : " npm run clear && $npm_package_config_concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && NODE_ENV=test istanbul cover $npm_package_config_mochaCoverage'"
47
47
},
55
55
"body-parser" : " ~1.18.2" ,
56
56
"compression" : " ~1.7.1" ,
57
57
"cors" : " ~2.8.4" ,
58
+ "cross-env" : " ^5.1.4" ,
58
59
"crypto" : " ~1.0.1" ,
59
60
"crypto-js" : " ~3.1.9-1" ,
60
61
"dauria" : " ~2.0.0" ,
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ module.exports = function (app) {
26
26
type : Boolean ,
27
27
default : false
28
28
} ,
29
+ deleted : {
30
+ type : Boolean ,
31
+ default : false
32
+ } ,
29
33
wasSeeded : { type : Boolean }
30
34
} ) ;
31
35
Original file line number Diff line number Diff line change 1
- const { unless, isProvider } = require ( 'feathers-hooks-common' ) ;
1
+ const { unless, isProvider, softDelete } = require ( 'feathers-hooks-common' ) ;
2
2
const { isVerified } = require ( 'feathers-authentication-management' ) . hooks ;
3
3
const { authenticate } = require ( 'feathers-authentication' ) . hooks ;
4
4
const { associateCurrentUser, restrictToOwner } = require ( 'feathers-authentication-hooks' ) ;
@@ -24,7 +24,7 @@ const thumbnailOptions = {
24
24
25
25
module . exports = {
26
26
before : {
27
- all : [ ] ,
27
+ all : softDelete ( ) ,
28
28
find : [
29
29
unless ( isModerator ( ) ,
30
30
excludeDisabled ( )
You can’t perform that action at this time.
0 commit comments