diff --git a/src/server/types/Outfit.js b/src/server/types/Outfit.js index d0d95c2..fcfda7c 100644 --- a/src/server/types/Outfit.js +++ b/src/server/types/Outfit.js @@ -25,8 +25,6 @@ const typeDefs = gql` # This is a convenience field: you could query this from the combination of # petAppearance and wornItems, but this gets you it in one shot! itemAppearances: [ItemAppearance!]! - - imageUrl(size: OutfitImageSize): String! } extend type Query { @@ -112,21 +110,6 @@ const resolvers = { const outfit = await outfitLoader.load(id); return outfit.updatedAt.toISOString(); }, - imageUrl: async ({ id }, { size = "SIZE_600" }, { outfitLoader }) => { - const outfit = await outfitLoader.load(id); - - const updatedAtTimestamp = Math.floor( - new Date(outfit.updatedAt).getTime() / 1000 - ); - const sizeNum = size.split("_")[1]; - - return ( - `https://impress-outfit-images.openneo.net/outfits` + - `/${encodeURIComponent(outfit.id)}` + - `/v/${encodeURIComponent(updatedAtTimestamp)}` + - `/${sizeNum}.png` - ); - }, }, Query: {