From ed134d87f72f89979578d6a3db5ea3af16db8188 Mon Sep 17 00:00:00 2001 From: kittapath Date: Sat, 19 Oct 2024 22:29:37 +0700 Subject: [PATCH] =?UTF-8?q?noti=20=E0=B8=AA=E0=B8=B3=E0=B9=80=E0=B8=99?= =?UTF-8?q?=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/CommandController.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index 26637b6a..a53b77e3 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -1036,7 +1036,7 @@ export class CommandController extends Controller { .catch((error) => { console.error("Error calling API:", error); }); - let _profiles = + let profilesSend = command && command.commandSends.length > 0 ? command.commandSends .filter((x) => x.profileId != null) @@ -1050,10 +1050,10 @@ export class CommandController extends Controller { : []; await new CallAPI() - .PostData(request, "/placement/noti/profiles", { + .PostData(request, "/placement/noti/profiles-send", { subject: `${command.issue}`, body: `${command.issue}`, - receiverUserIds: _profiles, + receiverUserIds: profilesSend, payload: "", //แนบไฟล์ }) .catch((error) => {