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