From 9f61250f05ccbcf0dab688e3670d8eedc7864585 Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 22 Feb 2021 20:00:38 -0800 Subject: [PATCH] Ignore unknown body IDs in item compatibility data --- src/server/types/Item.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/types/Item.js b/src/server/types/Item.js index d653bc7..d437ebe 100644 --- a/src/server/types/Item.js +++ b/src/server/types/Item.js @@ -451,6 +451,9 @@ const resolvers = { parents_swf_assets.swf_asset_id = swf_assets.id WHERE items.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] );