From e5759f39184081bceff2ab8b9500bf673e6b2049 Mon Sep 17 00:00:00 2001 From: 0xc1c4da Date: Fri, 26 Jul 2024 13:36:24 +0000 Subject: [PATCH] Fix item.attachments documentation (#2921) 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. --- content/json-rpc.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/content/json-rpc.ts b/content/json-rpc.ts index 147da8af9d..e131e04e9e 100644 --- a/content/json-rpc.ts +++ b/content/json-rpc.ts @@ -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(/^@/, '') }