diff --git a/lib/dav/davProperties.ts b/lib/dav/davProperties.ts index 6d97e40e0..619185673 100644 --- a/lib/dav/davProperties.ts +++ b/lib/dav/davProperties.ts @@ -128,6 +128,7 @@ export const getFavoritesReport = function(): string { * Get the SEARCH body to search for recently modified files * * @param lastModified Oldest timestamp to include (Unix timestamp) + * @param limit Maximum number of items to return * @example * ```ts * // SEARCH for recent files need a different DAV endpoint @@ -145,7 +146,7 @@ export const getFavoritesReport = function(): string { * }) as ResponseDataDetailed * ``` */ -export const getRecentSearch = function(lastModified: number): string { +export const getRecentSearch = function(lastModified: number, limit: number = 100): string { return ` @@ -196,7 +197,7 @@ export const getRecentSearch = function(lastModified: number): string { - 100 + ${limit} 0