summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-01-20 18:08:08 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-01-20 18:08:08 +0900
commit4ad04f5bfac1294e363ec670ec59b7f95cc061bf (patch)
tree6c37340a0c91873748afaab70e00dc979d471417 /src/api
parent[Test] Add some tests (diff)
downloadsharkey-4ad04f5bfac1294e363ec670ec59b7f95cc061bf.tar.gz
sharkey-4ad04f5bfac1294e363ec670ec59b7f95cc061bf.tar.bz2
sharkey-4ad04f5bfac1294e363ec670ec59b7f95cc061bf.zip
[API] Fix bug
Diffstat (limited to 'src/api')
-rw-r--r--src/api/endpoints/posts/search.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/endpoints/posts/search.js b/src/api/endpoints/posts/search.js
index 239517b993..b5ea114c18 100644
--- a/src/api/endpoints/posts/search.js
+++ b/src/api/endpoints/posts/search.js
@@ -4,9 +4,10 @@
* Module dependencies
*/
import * as mongo from 'mongodb';
+const escapeRegexp = require('escape-regexp');
import Post from '../../models/post';
import serialize from '../../serializers/post';
-const escapeRegexp = require('escape-regexp');
+import config from '../../../conf';
/**
* Search a post