impress-2020/pages/api
Matchu cc9a540cec Fix Juppie Swirl bug in /api/validPetPoses
Oops, the new Juppie Swirl color has ID 114, and there's no released color #113 yet. But our `/api/validPetPoses` code, when deciding how large to make the byte array, uses the _number_ of colors in the database.

This meant that, when Juppie Swirl was released, there wasn't a 114th slot allocated, and the loop stopped at color ID #113—so the new Juppie Swirl color #114 wasn't included in the results. This made it impossible to select Juppie Swirl as a starting color. (You could, however, model a Juppie Swirl Chia, and the wardrobe would load it successfully; and you would see the color/species picker with the correct options selected, but in a red "invalid" state.)

Now, we instead use the largest ID in the database to determine the size of the array. This means Juppie Swirl is now included correctly!

There would be network perf implications if the color IDs were a sparser space, but it's dense enough to be totally fine in practice. (But let's not release an April Fools color #9999 or anything!)
2022-02-23 00:01:10 -08:00
..
allWakaValues.js Turn on Honeycomb instrumentation again 2021-11-26 23:41:22 -08:00
assetImage.js Turn on Honeycomb instrumentation again 2021-11-26 23:41:22 -08:00
graphql.js Turn on Honeycomb instrumentation again 2021-11-26 23:41:22 -08:00
outfitImage.js Turn on Honeycomb instrumentation again 2021-11-26 23:41:22 -08:00
sendFeedback.js Turn on Honeycomb instrumentation again 2021-11-26 23:41:22 -08:00
uploadLayerImage.js Turn on Honeycomb instrumentation again 2021-11-26 23:41:22 -08:00
validPetPoses.js Fix Juppie Swirl bug in /api/validPetPoses 2022-02-23 00:01:10 -08:00