Skip to content

Commit

Permalink
[ICIJ/datashare#325] Correct the request to mark document as read
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Mar 24, 2020
1 parent cb32a44 commit 1fb5f72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ export default class Api {
return this.sendAction('/api/users/me')
}
setMarkAsRead (project, docIds) {
return this.sendActionAsText(`/api/${project}/documents/batchUpdate/markRead`, { method: 'POST', data: { docIds } })
return this.sendActionAsText(`/api/${project}/documents/batchUpdate/markRead`, { method: 'POST', data: docIds })
}
setMarkAsUnread (project, docIds) {
return this.sendActionAsText(`/api/${project}/documents/batchUpdate/unmarkRead`, { method: 'POST', data: { docIds } })
return this.sendActionAsText(`/api/${project}/documents/batchUpdate/unmarkRead`, { method: 'POST', data: docIds })
}
getMarkAsRead (project, docId) {
return this.sendAction(`/api/${project}/documents/markedRead/${docId}`)
Expand Down

0 comments on commit 1fb5f72

Please sign in to comment.