Fix UpdateSource for sync upserts

This commit is contained in:
Gregory Schier
2025-01-08 15:25:03 -08:00
parent cbc443075a
commit 328e3db56e
8 changed files with 53 additions and 34 deletions

View File

@@ -921,10 +921,17 @@ async fn cmd_import_data<R: Runtime>(
})
.collect();
let upserted =
batch_upsert(&window, workspaces, environments, folders, http_requests, grpc_requests)
.await
.map_err(|e| e.to_string())?;
let upserted = batch_upsert(
&window,
workspaces,
environments,
folders,
http_requests,
grpc_requests,
&UpdateSource::Import,
)
.await
.map_err(|e| e.to_string())?;
analytics::track_event(
&window,