From 2588a65865eb85424b846769cea544f8ad7524c6 Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Fri, 24 Sep 2021 14:43:59 +0200 Subject: [PATCH] Make etag optional Signed-off-by: Johan Haals --- docs/features/software-catalog/external-integrations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features/software-catalog/external-integrations.md b/docs/features/software-catalog/external-integrations.md index 8a4eb01140..3187efc551 100644 --- a/docs/features/software-catalog/external-integrations.md +++ b/docs/features/software-catalog/external-integrations.md @@ -204,7 +204,7 @@ const CACHE_KEY = 'v1'; // as well as the processing result used when the Etag matches. // Bump the CACHE_KEY version if you make any changes to this type. type CacheItem = { - etag: string; + etag?: string; entity: Entity; }; @@ -250,7 +250,7 @@ export class SystemXReaderProcessor implements CatalogProcessor { // Update the cache with the new ETag and entity used for the next run. await cache.set(CACHE_KEY, { - etag: response.etag ? response.etag : '', + etag: response.etag, entity, }); } catch (error) {