day-cohort-70 / shepherds-pie-stormy-monday

shepherds-pie-stormy-monday created by GitHub Classroom
0 stars 0 forks source link

OrderId assigment is broken for sparse order tables #56

Open jeff-ewers opened 5 months ago

jeff-ewers commented 5 months ago

orderId assignment is dependent on length of order table, which breaks when orders are deleted, rendering the table sparse.

orderId assignment should use Math.max() to assign the next ID