From 682e1b1cfb1dcdb402e587650d134246dc56925b Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Sat, 27 Jul 2024 14:49:11 +0200 Subject: [PATCH] Fixed missing endpoint for collectibles --- src/hooks/afterOperationSendChangesWebhook.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hooks/afterOperationSendChangesWebhook.ts b/src/hooks/afterOperationSendChangesWebhook.ts index 560e142..02ae120 100644 --- a/src/hooks/afterOperationSendChangesWebhook.ts +++ b/src/hooks/afterOperationSendChangesWebhook.ts @@ -298,6 +298,12 @@ export const getEndpointChangesForCollectible = ({ }: Collectible): EndpointChange[] => { const changes: EndpointChange[] = []; + changes.push({ + type: SDKEndpointNames.getCollectible, + slug, + url: getSDKEndpoint.getCollectible(slug), + }); + if (gallery && gallery.length > 0) { changes.push({ type: SDKEndpointNames.getCollectibleGallery,