From 9aab92ee3f93193706ac7ba6880e27c6f3bdc2f8 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 29 Aug 2025 15:12:29 +0700 Subject: [PATCH] no message --- src/interfaces/utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interfaces/utils.ts b/src/interfaces/utils.ts index b473366d..cbd1b00b 100644 --- a/src/interfaces/utils.ts +++ b/src/interfaces/utils.ts @@ -571,6 +571,8 @@ export async function PayloadSendNoti(commandId: string) { }, relations: ["commandType"], }); + if (!_command || !_command.commandType) + return ""; const _payload = { name: _command && _command.commandType ? `คำสั่ง${_command.commandType.name}`