mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: rename (#4551)
Co-authored-by: Richard Shiue <71320345+richardshiue@users.noreply.github.com>
This commit is contained in:
@ -80,7 +80,7 @@ impl DatabaseManager {
|
||||
&self,
|
||||
uid: i64,
|
||||
workspace_id: String,
|
||||
database_views_aggregate_id: String,
|
||||
workspace_database_object_id: String,
|
||||
) -> FlowyResult<()> {
|
||||
// Clear all existing tasks
|
||||
self.task_scheduler.write().await.clear_task();
|
||||
@ -98,12 +98,12 @@ impl DatabaseManager {
|
||||
let mut collab_raw_data = CollabDocState::default();
|
||||
|
||||
// If the workspace database not exist in disk, try to fetch from remote.
|
||||
if !self.is_collab_exist(uid, &collab_db, &database_views_aggregate_id) {
|
||||
if !self.is_collab_exist(uid, &collab_db, &workspace_database_object_id) {
|
||||
trace!("workspace database not exist, try to fetch from remote");
|
||||
match self
|
||||
.cloud_service
|
||||
.get_collab_doc_state_db(
|
||||
&database_views_aggregate_id,
|
||||
&workspace_database_object_id,
|
||||
CollabType::WorkspaceDatabase,
|
||||
&workspace_id,
|
||||
)
|
||||
@ -115,7 +115,7 @@ impl DatabaseManager {
|
||||
Err(err) => {
|
||||
return Err(FlowyError::record_not_found().with_context(format!(
|
||||
"get workspace database :{} failed: {}",
|
||||
database_views_aggregate_id, err,
|
||||
workspace_database_object_id, err,
|
||||
)));
|
||||
},
|
||||
}
|
||||
@ -125,11 +125,11 @@ impl DatabaseManager {
|
||||
event!(
|
||||
tracing::Level::INFO,
|
||||
"open aggregate database views object: {}",
|
||||
&database_views_aggregate_id
|
||||
&workspace_database_object_id
|
||||
);
|
||||
let collab = collab_builder.build_collab_with_config(
|
||||
uid,
|
||||
&database_views_aggregate_id,
|
||||
&workspace_database_object_id,
|
||||
CollabType::WorkspaceDatabase,
|
||||
collab_db.clone(),
|
||||
collab_raw_data,
|
||||
@ -152,10 +152,10 @@ impl DatabaseManager {
|
||||
&self,
|
||||
user_id: i64,
|
||||
workspace_id: String,
|
||||
database_views_aggregate_id: String,
|
||||
workspace_database_object_id: String,
|
||||
) -> FlowyResult<()> {
|
||||
self
|
||||
.initialize(user_id, workspace_id, database_views_aggregate_id)
|
||||
.initialize(user_id, workspace_id, workspace_database_object_id)
|
||||
.await?;
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user