mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
fix: use incremental sync (force_full=False) in cloud sync/bisync commands
Previously both sync_project_command and bisync_project_command hardcoded force_full=True when triggering the database sync after file sync, causing every operation to do a full re-index instead of incremental change detection. Fixes #706 Co-authored-by: Paul Hernandez <phernandez@users.noreply.github.com>
This commit is contained in:
@@ -131,7 +131,7 @@ def sync_project_command(
|
||||
async def _trigger_db_sync():
|
||||
async with get_client() as client:
|
||||
return await ProjectClient(client).sync(
|
||||
project_data.external_id, force_full=True
|
||||
project_data.external_id, force_full=False
|
||||
)
|
||||
|
||||
try:
|
||||
@@ -206,7 +206,7 @@ def bisync_project_command(
|
||||
async def _trigger_db_sync():
|
||||
async with get_client() as client:
|
||||
return await ProjectClient(client).sync(
|
||||
project_data.external_id, force_full=True
|
||||
project_data.external_id, force_full=False
|
||||
)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user