indices[i] instead of i so that the rows are re-inserted in the right place. The previous behavior was overwriting rows and was not caught because the tests only used a test database with 1 row where this is not an issue.
updated the tests to use a database with 3 rows but only 1 active award so only one ticket will be created
indices[i]
instead ofi
so that the rows are re-inserted in the right place. The previous behavior was overwriting rows and was not caught because the tests only used a test database with 1 row where this is not an issue.