mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Missed a conflict
This commit is contained in:
parent
5f7d9f792f
commit
12dd5b1141
1 changed files with 5 additions and 12 deletions
|
@ -47,26 +47,19 @@ export const validateDocument = (document, collection, context) => {
|
|||
errors.forEach(error => {
|
||||
// eslint-disable-next-line no-console
|
||||
// console.log(error);
|
||||
<<<<<<< HEAD
|
||||
if (error.type.includes('intlError')) {
|
||||
validationErrors = validationErrors.concat(JSON.parse(error.type.replace('intlError|', '')));
|
||||
} else {
|
||||
validationErrors.push({
|
||||
id: `errors.${error.type}`,
|
||||
path: error.name,
|
||||
properties: error,
|
||||
properties: {
|
||||
collectionName: collection.options.collectionName,
|
||||
typeName: collection.options.typeName,
|
||||
...error,
|
||||
},
|
||||
});
|
||||
}
|
||||
=======
|
||||
validationErrors.push({
|
||||
id: `errors.${error.type}`,
|
||||
path: error.name,
|
||||
properties: {
|
||||
collection: collection._name,
|
||||
...error,
|
||||
},
|
||||
});
|
||||
>>>>>>> 1433ca96294c4c03d060df0708971e8100945f08
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue