Skip to content

Commit

Permalink
fixup! fixup! fixup! fix(validation): disable abortEarly
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaledgarbaya committed Feb 8, 2018
1 parent a54375f commit 62a294c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/utils/validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ const attachEntityName = (details, payload) => {
})
}
const countInvalidEntities = (validationData) => {
const entityCount = validationData.reduce((entities, currentdetail) => {
if (!entities[currentdetail.path[0]]) {
entities[currentdetail.path[0]] = 0
const entityCount = validationData.reduce((entities, currentDetail) => {
if (!entities[currentDetail.path[0]]) {
entities[currentDetail.path[0]] = 1
} else {
entities[currentdetail.path[0]]++
entities[currentDetail.path[0]]++
}
return entities
})
}, {})
return Object.keys(entityCount).map((key) => `Invalid ${key}:${entityCount[key]}`)
}

Expand Down

0 comments on commit 62a294c

Please sign in to comment.