From e0b18a7d5d46a3f19606546dfd79dc915986313e Mon Sep 17 00:00:00 2001 From: Arie Trouw Date: Tue, 17 Oct 2023 15:27:08 -0700 Subject: [PATCH] Thumbnail diviner updated --- .../image-thumbnail/packages/diviner/src/Diviner/Diviner.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/packages/payloadset/packages/image-thumbnail/packages/diviner/src/Diviner/Diviner.ts b/packages/plugins/packages/payloadset/packages/image-thumbnail/packages/diviner/src/Diviner/Diviner.ts index 775c0a4df00..7233a50573f 100644 --- a/packages/plugins/packages/payloadset/packages/image-thumbnail/packages/diviner/src/Diviner/Diviner.ts +++ b/packages/plugins/packages/payloadset/packages/image-thumbnail/packages/diviner/src/Diviner/Diviner.ts @@ -172,10 +172,10 @@ export class ImageThumbnailDiviner = { limit, offset, order, success, url } // Default to filtering on 200 status code if success was not supplied - if (payloadSuccess === undefined) fields.status = payloadStatus ?? 200 + if (payloadSuccess === true) fields.status = payloadStatus ?? 200 // If success is true and status was supplied, use it if (success === true && payloadStatus !== undefined) fields.status = payloadStatus const query = new PayloadBuilder({ schema: PayloadDivinerQuerySchema }).fields(fields).build()