fix(sync): 恢复过期会话并持久化上传尝试结果

This commit is contained in:
2026-09-08 20:10:26 +08:00
parent 22975e5da5
commit cb6dae7efd
9 changed files with 314 additions and 40 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ impl Workspace {
}
Ok(job)
}
fn check_job(&self, job: &Job) -> Result<()> {
pub(crate) fn check_job(&self, job: &Job) -> Result<()> {
self.check_binding(&job.binding)?;
let state: String = self.db.query_row(
"SELECT state FROM sync_jobs WHERE binding=?1 AND operation_id=?2",