mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
Add missing ';'
This commit is contained in:
parent
f9a7ef6858
commit
6dbccb2d5a
@ -2,7 +2,7 @@
|
||||
|
||||
const path = require('path');
|
||||
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');
|
||||
|
||||
@ -120,7 +120,7 @@ const resolveCustomMiddleware = (resolve, strapi) => {
|
||||
}
|
||||
|
||||
try {
|
||||
return importDefault(modulePath)
|
||||
return importDefault(modulePath);
|
||||
} catch (err) {
|
||||
throw new Error(`Could not load middleware "${modulePath}".`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user