Ignore unknown body IDs in item compatibility data

This commit is contained in:
Emi Matchu 2021-02-22 20:00:38 -08:00
parent 7ca548bae0
commit 9f61250f05

View file

@ -451,6 +451,9 @@ const resolvers = {
parents_swf_assets.swf_asset_id = swf_assets.id parents_swf_assets.swf_asset_id = swf_assets.id
WHERE items.id = ? WHERE items.id = ?
GROUP BY swf_assets.body_id GROUP BY swf_assets.body_id
-- We have some invalid data where the asset has a body ID that
-- matches no pet type. Huh! Well, ignore those bodies!
HAVING speciesId IS NOT NULL;
`, `,
[id] [id]
); );