Skip to content

Commit fb29e2b

Browse files
authored
Update Linkwarden.ts
1 parent bb2fc75 commit fb29e2b

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,8 +193,8 @@ export default class LinkwardenAdapter implements Adapter, IResource<typeof Item
193193
const links = []
194194
let response
195195
do {
196-
({ response } = await this.sendRequest('GET', `/api/v1/links?cursor=${links.length ? links[links.length - 1].id : ''}`))
197-
links.push(...response)
196+
({ data } = await this.sendRequest('GET', `/api/v1/links?cursor=${links.length ? links[links.length - 1].id : ''}`))
197+
links.push(...data.links)
198198
} while (response.length !== 0)
199199

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

0 commit comments

Comments
 (0)