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`