Skip to content

Commit

Permalink
fix: make duplicate more error forgiving
Browse files Browse the repository at this point in the history
  • Loading branch information
speed2exe committed Aug 12, 2024
1 parent e8e36be commit 167d137
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/biz/workspace/publish_dup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,19 @@ impl PublishCollabDuplicator {
.get_document_data()
.map_err(|e| AppError::Unhandled(e.to_string()))?;

self
if let Err(err) = self
.deep_copy_doc_pages(txn, &mut doc_data, &mut ret_view)
.await?;
.await
{
tracing::error!("failed to deep copy doc pages: {}", err);
}

self
if let Err(err) = self
.deep_copy_doc_databases(txn, &mut doc_data, &mut ret_view)
.await?;
.await
{
tracing::error!("failed to deep copy doc databases: {}", err);
};

// doc_data into binary data
let new_doc_data = {
Expand Down

0 comments on commit 167d137

Please sign in to comment.