Skip to content

Commit

Permalink
Fix NextcloudFolders#updateBookmar: Don't append() on JSON object
Browse files Browse the repository at this point in the history
Fixes #196
  • Loading branch information
marcelklehr committed Nov 16, 2018
1 parent 2d6cb24 commit 793ef36
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/adapters/NextcloudFolders.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,11 +439,10 @@ export default class NextcloudFoldersAdapter extends Adapter {
folders: bms
.map(bm => bm.parentId)
.filter(parentId => parentId !== oldParentId)
.concat([newBm.parentId])
.concat([newBm.parentId]),
tags: bms[0].tags
})

bms[0].tags.forEach(tag => body.append('item[tags][]', tag))

await this.sendRequest(
'PUT',
`index.php/apps/bookmarks/public/rest/v2/bookmark/${upstreamId}`,
Expand Down

0 comments on commit 793ef36

Please sign in to comment.