From eb901a534bb2fb3b2a914252dbeda21f5af09cc3 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Mon, 27 Nov 2023 11:20:52 +0800 Subject: [PATCH] update comment --- packages/integration-handler/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/integration-handler/src/index.ts b/packages/integration-handler/src/index.ts index 735fbe0e7..04dc2c909 100644 --- a/packages/integration-handler/src/index.ts +++ b/packages/integration-handler/src/index.ts @@ -231,14 +231,15 @@ export const importer = Sentry.GCPFunction.wrapHttpFunction( // paginate api calls to the integration do { - // filter out items that are deleted or archived if the stateToImport is unarchived // write the list of urls, state and labels to the stream retrievedData .filter((row) => { + // filter out items that are deleted if (row.state === State.DELETED) { return false } + // filter out items that archived if the stateToImport is unarchived return ( stateToImport !== State.UNARCHIVED || row.state !== State.ARCHIVED