Skip to content

Commit

Permalink
hey jest, please detect my updated code
Browse files Browse the repository at this point in the history
  • Loading branch information
kl4us committed Aug 6, 2023
1 parent 174d5a4 commit c98b122
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/MutableClimbDataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default class MutableClimbDataSource extends ClimbDataSource {

if (userInput[i].pitches != null) {
userInput[i].pitches?.forEach((pitch, index) => {
if (pitch.id == null || pitch.parent_id == null || pitch.number == null) {
throw new UserInputError(`Can't add pitch without required properties (_id, parent_id, number). (Index[index=${index}])`);
if (pitch.parent_id == null || pitch.number == null) {
throw new UserInputError(`Can't add pitch without required properties (parent_id: ${parent.id}, number: ${pitch.number}). (Index[index=${index}])`);
}
});
}
Expand Down

0 comments on commit c98b122

Please sign in to comment.