aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/src
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/src')
-rw-r--r--apps/dav/src/service/CalendarService.js10
-rw-r--r--apps/dav/src/views/CalDavSettings.spec.js2
2 files changed, 11 insertions, 1 deletions
diff --git a/apps/dav/src/service/CalendarService.js b/apps/dav/src/service/CalendarService.js
index caac6874907..9de0d0b5946 100644
--- a/apps/dav/src/service/CalendarService.js
+++ b/apps/dav/src/service/CalendarService.js
@@ -25,6 +25,9 @@ import { parseXML } from 'webdav/dist/node/tools/dav'
import { getZoneString } from 'icalzone'
import { v4 as uuidv4 } from 'uuid'
+/**
+ *
+ */
export function getEmptySlots() {
return {
MO: [],
@@ -37,6 +40,9 @@ export function getEmptySlots() {
}
}
+/**
+ *
+ */
export async function findScheduleInboxAvailability() {
const client = getClient('calendars')
@@ -101,6 +107,10 @@ export async function findScheduleInboxAvailability() {
}
}
+/**
+ * @param slots
+ * @param timezoneId
+ */
export async function saveScheduleInboxAvailability(slots, timezoneId) {
const all = [...Object.keys(slots).flatMap(dayId => slots[dayId].map(slot => ({
...slot,
diff --git a/apps/dav/src/views/CalDavSettings.spec.js b/apps/dav/src/views/CalDavSettings.spec.js
index 3f9254a3010..0dc4c44537a 100644
--- a/apps/dav/src/views/CalDavSettings.spec.js
+++ b/apps/dav/src/views/CalDavSettings.spec.js
@@ -31,7 +31,7 @@ describe('CalDavSettings', () => {
global.OCP = originalOCP
})
- test('interactions', async() => {
+ test('interactions', async () => {
const TLUtils = render(
CalDavSettings,
{