I think the current implementation of the Records will allow for duplicate request ids being added to the requests array.
Possible fixes:
- Make
requests into a Set instead of an array
- Add
hasRequestId method to the records and check that function before inserting a request id into the requests property