File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "githubPullRequests.ignoredPullRequestBranches" : [" master" ]
3
+ }
Original file line number Diff line number Diff line change 65
65
router
66
66
. route ( '/profile/update/:id' )
67
67
. patch (
68
- hasPermission ( 'read' ) ,
68
+ hasPermission ( ) ,
69
69
adminPhotoUpload . single ( 'file' ) ,
70
70
setFilePathToBody ( 'photo' ) ,
71
71
catchErrors ( adminController . updateProfile )
Original file line number Diff line number Diff line change @@ -7,10 +7,13 @@ mongoose.Promise = global.Promise; // Tell Mongoose to use ES6 promises
7
7
async function deleteData ( ) {
8
8
const Admin = require ( '../models/coreModels/Admin' ) ;
9
9
const Setting = require ( '../models/coreModels/Setting' ) ;
10
+ const Email = require ( '../models/coreModels/Email' ) ;
10
11
await Admin . remove ( ) ;
11
12
console . log ( '👍 admin Deleted. To setup demo admin data, run\n\n\t npm run setup\n\n' ) ;
12
13
await Setting . remove ( ) ;
13
14
console . log ( '👍 Setting Deleted. To setup demo admin data, run\n\n\t npm run setup\n\n' ) ;
15
+ await Email . remove ( ) ;
16
+ console . log ( '👍 Email Deleted. To setup demo admin data, run\n\n\t npm run setup\n\n' ) ;
14
17
process . exit ( ) ;
15
18
}
16
19
You can’t perform that action at this time.
0 commit comments