From 4ad04f5bfac1294e363ec670ec59b7f95cc061bf Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 20 Jan 2017 18:08:08 +0900 Subject: [PATCH] [API] Fix bug --- src/api/endpoints/posts/search.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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