Instead of using a separate insert into query for each rental, insert all of them in a single query. This also provides the desired transactional behavior: if one rental cannot be created, then none of them will be created and the response will be an error.
Instead of using a separate
insert into
query for each rental, insert all of them in a single query. This also provides the desired transactional behavior: if one rental cannot be created, then none of them will be created and the response will be an error.Closes #337.