Skip to content

Commit

Permalink
Fix item.attachments documentation (#2921)
Browse files Browse the repository at this point in the history
An old script returned an error saying a citekey could not be found, my usage according to the site documentation appeared to be correct
https://retorque.re/zotero-better-bibtex/exporting/json-rpc/index.html#itemattachmentscitekey

The documentation is missing the optional secondary parameter.
  • Loading branch information
0xc1c4da authored Jul 26, 2024
1 parent e65410c commit e5759f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions content/json-rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ class NSItem {
* List attachments for an item with the given citekey
*
* @param citekey The citekey to search for
* @param library The libraryID to search in (optional)
*/
public async attachments(citekey: string, library?: string | number) {
const where : Query = { citationKey: citekey.replace(/^@/, '') }
Expand Down

0 comments on commit e5759f3

Please sign in to comment.