mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +00:00
Add missing ';'
This commit is contained in:
parent
f9a7ef6858
commit
6dbccb2d5a
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { propOr, isArray, isNil } = require('lodash/fp');
|
const { propOr, isArray, isNil } = require('lodash/fp');
|
||||||
const importDefault = require('../../../lib/utils/import-default')
|
const importDefault = require('../../utils/import-default');
|
||||||
|
|
||||||
const getMiddlewareConfig = propOr([], 'config.middlewares');
|
const getMiddlewareConfig = propOr([], 'config.middlewares');
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ const resolveCustomMiddleware = (resolve, strapi) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return importDefault(modulePath)
|
return importDefault(modulePath);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new Error(`Could not load middleware "${modulePath}".`);
|
throw new Error(`Could not load middleware "${modulePath}".`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user