Skip to content

Commit

Permalink
Change return to continue when getting a duplicate error adding m…
Browse files Browse the repository at this point in the history
…ock meters.
  • Loading branch information
mandyvenables committed Aug 17, 2023
1 parent 1c4dd51 commit a69b2c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# bedrock-meter ChangeLog

## 5.2.1 - 2023-08-xx

### Fixed
- Change `return` to `continue` when getting a duplicate error adding
mock meters.

## 5.2.0 - 2023-07-17

### Added
Expand Down
2 changes: 1 addition & 1 deletion lib/mocks/dev-meters.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ bedrock.events.on('bedrock-mongodb.ready', async () => {
} catch(e) {
if(e.name === 'DuplicateError') {
// ignore duplicate error
return;
continue;
}

throw e;
Expand Down

0 comments on commit a69b2c3

Please sign in to comment.