refs #5878 perf: change require file
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
40a269c358
commit
2c91b5b701
|
@ -12,6 +12,7 @@ const modelsLocale = glob.sync(pathResolve, {}).map(f => {
|
|||
return [keyMap(model, locale), file.columns];
|
||||
}
|
||||
);
|
||||
const {models} = require('vn-loopback/server/server');
|
||||
const mapLocale = new Map(modelsLocale);
|
||||
|
||||
module.exports = {
|
||||
|
@ -19,7 +20,6 @@ module.exports = {
|
|||
message: ({tagValue}, {__: $t}) =>
|
||||
$t('Field are invalid', {tag: tagValue}),
|
||||
handleError: ({method: verb, originalUrl, body, __: $t}) => {
|
||||
const {models} = require('vn-loopback/server/server');
|
||||
let tag = null;
|
||||
let module = null;
|
||||
let moduleOriginal = null;
|
||||
|
|
Loading…
Reference in New Issue