File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 2
2
/* globals Promise */
3
3
4
4
import _ from 'lodash' ;
5
- import config from 'config' ;
6
5
import { middleware as tcMiddleware } from 'tc-core-library-js' ;
7
6
import util from '../../util' ;
8
7
@@ -17,8 +16,6 @@ import util from '../../util';
17
16
18
17
// var permissions = require('tc-core-library-js').middleware.permissions
19
18
const permissions = tcMiddleware . permissions ;
20
- const ES_PROJECT_INDEX = config . get ( 'elasticsearchConfig.indexName' ) ;
21
- // const ES_PROJECT_TYPE = config.get('elasticsearchConfig.docType');
22
19
23
20
module . exports = [
24
21
permissions ( 'project.admin' ) ,
@@ -43,6 +40,6 @@ module.exports = [
43
40
// we would want to ignore no such index error
44
41
ignore : [ 404 ] ,
45
42
} ) ;
46
- res . status ( 200 ) . json ( util . wrapResponse ( req . id , { message : 'Delete index request successfully submitted' } ) ) ;
43
+ return res . status ( 200 ) . json ( util . wrapResponse ( req . id , { message : 'Delete index request successfully submitted' } ) ) ;
47
44
} ,
48
45
] ;
You can’t perform that action at this time.
0 commit comments