w
This commit is contained in:
@ -31,7 +31,7 @@ export default (endpoint: string | Endpoint, user: IUser, app: IApp, data: any,
|
||||
}
|
||||
}
|
||||
|
||||
let exec = require(`${__dirname}/endpoints/${ep.name}`);
|
||||
let exec = require(`${__dirname}/endpoints/${ep.name}`).default;
|
||||
|
||||
if (ep.withFile && file) {
|
||||
exec = exec.bind(null, file);
|
||||
|
@ -38,7 +38,7 @@ const client = require('../../../../built/client/meta.json');
|
||||
/**
|
||||
* Show core info
|
||||
*/
|
||||
export default (params: any) => new Promise(async (res, rej) => {
|
||||
export default () => new Promise(async (res, rej) => {
|
||||
const meta: any = (await Meta.findOne()) || {};
|
||||
|
||||
res({
|
||||
|
Reference in New Issue
Block a user