fix: use correct view id

This commit is contained in:
Zack Fu Zi Xiang 2024-09-17 13:15:16 +08:00
parent 4908ceae8b
commit 09892c9897
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -987,7 +987,7 @@ impl PublishCollabDuplicator {
AppError::RecordNotFound(format!("main view not found: {}", pub_view_id))
})?;
let view_info = view_info_by_id.get(main_view_id).ok_or_else(|| {
let view_info = view_info_by_id.get(pub_view_id).ok_or_else(|| {
AppError::RecordNotFound(format!("metadata not found for view: {}", main_view_id))
})?;