Skip to content

Commit 3f2682b

Browse files
refactor(recent-search): bring back timestamp section on where clause
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
1 parent d88ed2d commit 3f2682b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/dav/davProperties.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export const getFavoritesReport = function(): string {
128128
* Get the SEARCH body to search for recently modified files
129129
*
130130
* @param lastModified Oldest timestamp to include (Unix timestamp)
131+
* @param limit Maximum number of items to return
131132
* @example
132133
* ```ts
133134
* // SEARCH for recent files need a different DAV endpoint
@@ -145,7 +146,7 @@ export const getFavoritesReport = function(): string {
145146
* }) as ResponseDataDetailed<FileStat[]>
146147
* ```
147148
*/
148-
export const getRecentSearch = function(lastModified: number): string {
149+
export const getRecentSearch = function(lastModified: number, limit: number = 100): string {
149150
return `<?xml version="1.0" encoding="UTF-8"?>
150151
<d:searchrequest ${getDavNameSpaces()}
151152
xmlns:ns="https://github.com/icewind1991/SearchDAV/ns">

0 commit comments

Comments
 (0)