fix: use meta

This commit is contained in:
Zack Fu Zi Xiang 2024-09-09 15:58:25 +08:00
parent 12d6455031
commit 39297e23e4
No known key found for this signature in database
1 changed files with 4 additions and 2 deletions

View File

@ -797,13 +797,15 @@ impl PublishCollabDuplicator {
// handle document in database row
let row_meta: MapRef = db_row_collab
.data
.get_with_path(&txn, ["data", "meta"])
.get(&txn, "meta")
.ok_or_else(|| {
AppError::RecordNotFound(format!(
"no data found in database row collab: {}",
pub_row_id
))
})?;
})?
.cast()
.map_err(|err| AppError::Unhandled(format!("not a map: {:?}", err)))?;
// document_id
let pub_row_doc_id_key =