diff --git a/src/plugins/Cases.ts b/src/plugins/Cases.ts index c58a792f..33715422 100644 --- a/src/plugins/Cases.ts +++ b/src/plugins/Cases.ts @@ -36,8 +36,8 @@ export class CasesPlugin extends ZeppelinPlugin { ); }); - this.actions.register("createCaseNote", args => { - return this.createCaseNote(args.case || args.caseId, args.modId, args.note, args.automatic, args.postInCaseLog); + this.actions.register("createCaseNote", (caseOrCaseId, args) => { + return this.createCaseNote(caseOrCaseId, args.modId, args.note, args.automatic, args.postInCaseLog); }); this.actions.register("postCase", async args => {