refs #5878 perf: change require file
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2024-01-03 11:53:00 +01:00
parent 40a269c358
commit 2c91b5b701
1 changed files with 1 additions and 1 deletions

View File

@ -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;