From eafdd41ee18b6a27d8aa385bde34314ce834e535 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Mon, 8 Jan 2024 12:07:26 +0800 Subject: [PATCH] get all the items updated since the last sync including archived items --- packages/integration-handler/src/item.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/integration-handler/src/item.ts b/packages/integration-handler/src/item.ts index df9da7725..e406f915a 100644 --- a/packages/integration-handler/src/item.ts +++ b/packages/integration-handler/src/item.ts @@ -47,7 +47,8 @@ export const search = async ( first = 50, after = '0' ): Promise => { - const query = `updated:${updatedSince.toISOString()} ${ + // get all the items updated since the last sync including archived items + const query = `in:all updated:${updatedSince.toISOString()} ${ highlightOnly ? 'has:highlights' : '' } sort:updated-asc`