mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-30 12:03:59 +01:00
Fix UpdateSource for sync upserts
This commit is contained in:
1 parent
cbc443075a
commit
328e3db56e
8 files changed
+53
-34
No files matched your search
+11
-4
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user