Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/adapters/Linkwarden.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ export default class LinkwardenAdapter implements Adapter, IResource<typeof Item
const links = []
let response
do {
({ response } = await this.sendRequest('GET', `/api/v1/links?cursor=${links.length ? links[links.length - 1].id : ''}`))
links.push(...response)
({ data } = await this.sendRequest('GET', `/api/v1/search?cursor=${links.length ? links[links.length - 1].id : ''}`))
links.push(...data.links)
} while (response.length !== 0)

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