wip
This commit is contained in:
parent
fcfd9239c1
commit
9b41023c43
109 changed files with 212 additions and 130 deletions
|
@ -5,7 +5,7 @@ import { ILocalUser } from '../../../../models/user';
|
|||
import { pack } from '../../../../models/note';
|
||||
import es from '../../../../db/elasticsearch';
|
||||
|
||||
module.exports = (params: any, me: ILocalUser) => new Promise(async (res, rej) => {
|
||||
export default (params: any, me: ILocalUser) => new Promise(async (res, rej) => {
|
||||
// Get 'query' parameter
|
||||
const [query, queryError] = $.str.get(params.query);
|
||||
if (queryError) return rej('invalid query param');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue