Update all modules to use registry - part 1
This commit is contained in:
2
crates/groupware/src/cache/calcard.rs
vendored
2
crates/groupware/src/cache/calcard.rs
vendored
@@ -181,7 +181,7 @@ pub(super) async fn build_scheduling_resources(
|
||||
.caused_by(trc::location!())?
|
||||
.unwrap_or_default();
|
||||
|
||||
let account_info = server.account_info(account_id).await?;
|
||||
let account_info = server.account(account_id).await?;
|
||||
let item_ids = server
|
||||
.itip_ids(account_id)
|
||||
.await
|
||||
|
||||
2
crates/groupware/src/cache/file.rs
vendored
2
crates/groupware/src/cache/file.rs
vendored
@@ -31,7 +31,7 @@ pub(super) async fn build_file_resources(
|
||||
.await
|
||||
.caused_by(trc::location!())?
|
||||
.unwrap_or_default();
|
||||
let account_info = server.account_info(account_id).await?;
|
||||
let account_info = server.account(account_id).await?;
|
||||
|
||||
let mut resources = Vec::with_capacity(16);
|
||||
server
|
||||
|
||||
@@ -496,13 +496,13 @@ impl ItipIngest for Server {
|
||||
if did_change {
|
||||
// Prepare write batch
|
||||
let account_info = self
|
||||
.account_info(rsvp.account_id)
|
||||
.account(rsvp.account_id)
|
||||
.await
|
||||
.caused_by(trc::location!())?;
|
||||
let mut batch = BatchBuilder::new();
|
||||
new_event
|
||||
.update(
|
||||
account_info.account_tenant_ids(),
|
||||
account_info.account_tenant_ids(rsvp.account_id),
|
||||
event,
|
||||
rsvp.account_id,
|
||||
rsvp.document_id,
|
||||
|
||||
@@ -134,10 +134,10 @@ impl ItipAutoExpunge for Server {
|
||||
// Tombstone messages
|
||||
let mut batch = BatchBuilder::new();
|
||||
let changed_by = self
|
||||
.account_info(account_id)
|
||||
.account(account_id)
|
||||
.await
|
||||
.caused_by(trc::location!())?
|
||||
.account_tenant_ids();
|
||||
.account_tenant_ids(account_id);
|
||||
|
||||
for document_id in destroy_ids {
|
||||
// Fetch event
|
||||
|
||||
Reference in New Issue
Block a user