Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ext/js/comm/anki-connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,8 @@ export class AnkiConnect {
* @returns {Promise<unknown[]>}
*/
async _invokeMulti(actions) {
const result = await this._invoke('multi', {actions});
const modifiedActions = actions.map((action) => ({...action, key: this._apiKey}));
const result = await this._invoke('multi', {actions: modifiedActions});
if (!Array.isArray(result)) {
throw this._createUnexpectedResultError('array', result);
}
Expand Down
Loading