This commit is contained in:
che
2026-07-28 08:53:19 +05:00
parent 2dd7d33c8b
commit e79bbbfcc4
25 changed files with 1303 additions and 148 deletions
+3 -1
View File
@@ -4,6 +4,8 @@ use che_orm::__private::sqlx;
use che_tauri::{ApiError, TauriApi};
use serde::Deserialize;
use crate::remote_http_client;
#[derive(Debug, serde::Serialize)]
pub struct SyncContractsResult {
pub synced: usize,
@@ -167,7 +169,7 @@ pub async fn sync_contracts(
let remote = state
.remote_config()
.ok_or_else(|| ApiError::bad_request("sync requires [remote].base_url config"))?;
let client = reqwest::Client::new();
let client = remote_http_client();
sync_contract_categories(api, &client, &token, &remote.base_url).await?;
let mut next_url = Some(format!(