Skip to content

Commit 77bfb16

Browse files
authored
Fix(Linkwarden)
1 parent 5e2756b commit 77bfb16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/adapters/Linkwarden.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ export default class LinkwardenAdapter implements Adapter, IResource<typeof Item
193193
const links = []
194194
let data
195195
do {
196-
({ data } = await this.sendRequest('GET', `/api/v1/search?cursor=${links.length ? links[links.length - 1].id : ''}`))
196+
({ data } = await this.sendRequest('GET', `/api/v1/search?searchQueryString=&cursor=${data?.nextCursor || : ''}`))
197197
links.push(...data.links)
198-
} while (data.length !== 0)
198+
} while (data.links.length !== 0)
199199

200200
const { response: collections } = await this.sendRequest('GET', `/api/v1/collections`)
201201

0 commit comments

Comments
 (0)