Skip to content

Commit

Permalink
fix: data after try
Browse files Browse the repository at this point in the history
  • Loading branch information
LuXDAmore committed Oct 7, 2020
1 parent 0865fce commit 9676472
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,20 +318,20 @@ export default async function(

}

} finally {} // eslint-disable-line

// Keep errors for later
data.error && errors.push(
`[${ id }] ${ data.error }`
);

// Keep errors for later
data.error && errors.push(
`[${ id }] ${ data.error }`
);
data.errors && data.errors.length && errors.push(
... data.errors.map(
error => `[${ id }] ${ error.message }`
),
);

data.errors && data.errors.length && errors.push(
... data.errors.map(
error => `[${ id }] ${ error.message }`
),
);
} finally {} // eslint-disable-line

// Check for NEXT pagination value
const nextToken = (
pathResponseToTheNextPaginationValue
? findValue(
Expand Down

0 comments on commit 9676472

Please sign in to comment.