Update all modules to use registry - part 4
This commit is contained in:
@@ -367,7 +367,11 @@ impl CalendarEventNotificationHandler for Server {
|
||||
let mut response = ScheduleResponse::default();
|
||||
|
||||
for (email, attendee) in attendees {
|
||||
if let Some(account_id) = self.account_id(&email).await.caused_by(trc::location!())? {
|
||||
if let Some(account_id) = self
|
||||
.account_id_from_email(&email, false)
|
||||
.await
|
||||
.caused_by(trc::location!())?
|
||||
{
|
||||
let resources = self
|
||||
.fetch_dav_resources(
|
||||
access_token.account_id(),
|
||||
|
||||
@@ -91,7 +91,7 @@ impl DavUriResource for Server {
|
||||
.map_err(|_| DavError::Code(error_status))?
|
||||
} else {
|
||||
let account = decode_path_element(account);
|
||||
self.account_id(&account)
|
||||
self.account_id_from_email(&account, false)
|
||||
.await
|
||||
.caused_by(trc::location!())?
|
||||
.ok_or(DavError::Code(error_status))?
|
||||
|
||||
Reference in New Issue
Block a user