From e787312a1a74772d5ccf460971b5762367389941 Mon Sep 17 00:00:00 2001 From: Dragory Date: Sat, 22 Dec 2018 14:05:06 +0200 Subject: [PATCH] Fix !update and auto-updated mute cases --- src/plugins/Cases.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 => {