Skip to content

Commit

Permalink
chore: removed debug statement
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Jul 8, 2024
1 parent acfbdd8 commit a151ff5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/api/hooks/hooks.schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export function validateData (schema) {

items.forEach((item, index) => {
if (item.status === 'rejected') {
console.log(item.reason)
item.validationError = {
message: item.reason.message,
data: item.reason.data.map(error => {
Expand Down Expand Up @@ -58,7 +57,6 @@ export function validateData (schema) {
const hasError = (errors.length > 0)
if (hasError) {
const firstError = errors[0]
console.log(firstError)
// Single item case => raise the error
if (!isArray) throw new BadRequest(firstError.message, firstError.data)
// Multiple items case => raise if no valid data found
Expand Down

0 comments on commit a151ff5

Please sign in to comment.