From abc88eac3b9ca67e0cc9d99c0fdb604c3f368f9d Mon Sep 17 00:00:00 2001 From: denisgoryaynov Date: Fri, 11 Sep 2020 21:06:16 +0200 Subject: [PATCH] Fix image formats generation --- src/normalize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/normalize.js b/src/normalize.js index b445e21..f7baef3 100644 --- a/src/normalize.js +++ b/src/normalize.js @@ -14,7 +14,7 @@ const extractFields = async (apiURL, store, cache, createNode, createNodeId, tou if (isImage(item)) { let fileNodeID // using field on the cache key for multiple image field - const mediaDataCacheKey = `strapi-media-${item.id}` + const mediaDataCacheKey = `strapi-media-${item.hash}` const cacheMediaData = await cache.get(mediaDataCacheKey) const itemUpdatedAt = item.updatedAt || item.updated_at