We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70e9726 commit 39e7768Copy full SHA for 39e7768
apps/sim/lib/knowledge/connectors/sync-engine.ts
@@ -562,8 +562,7 @@ export async function executeSync(
562
.map((d) => d.id)
563
564
if (removedIds.length > 0) {
565
- const deletionRatio =
566
- existingDocs.length > 0 ? removedIds.length / existingDocs.length : 0
+ const deletionRatio = existingDocs.length > 0 ? removedIds.length / existingDocs.length : 0
567
568
if (deletionRatio > 0.5 && removedIds.length > 5 && !options?.fullSync) {
569
logger.warn(
0 commit comments