mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
Merge pull request #55282 from nextcloud/fix/create-room-resource-calendar-sync
fix: create room/resource calendar synchronously
This commit is contained in:
commit
d04b02715a
1 changed files with 9 additions and 2 deletions
|
|
@ -102,8 +102,15 @@ class ResourcesRoomsUpdater {
|
|||
|
||||
$id = $this->addToCache($dbTable, $backendId, $resource);
|
||||
$this->addMetadataToCache($dbTableMetadata, $foreignKey, $id, $metadata);
|
||||
// we don't create the calendar here, it is created lazily
|
||||
// when an event is actually scheduled with this resource / room
|
||||
|
||||
$principalName = implode('-', [$backendId, $newId]);
|
||||
$this->calDavBackend->createCalendar(
|
||||
implode('/', [$principalPrefix, $principalName]),
|
||||
CalDavBackend::RESOURCE_BOOKING_CALENDAR_URI,
|
||||
[
|
||||
'{DAV:}displayname' => CalDavBackend::RESOURCE_BOOKING_CALENDAR_NAME,
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
foreach ($deletedIds as $deletedId) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue