Merge branch 'adiDev' into develop
This commit is contained in:
commit
0ac62329d9
1 changed files with 3 additions and 3 deletions
|
|
@ -130,7 +130,7 @@ async function handler(msg: amqp.ConsumeMessage): Promise<boolean> {
|
|||
message: `ระบบทำการออกคำสั่งเลขที่ ${command.commandNo}/${command.commandYear + 543}`,
|
||||
payload: command,
|
||||
},
|
||||
{ userId: user.sub },
|
||||
{ userId: user.sub ?? "" },
|
||||
).catch(console.error);
|
||||
const path = commandTypePath(command.commandType.code);
|
||||
if (path == null) throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบประเภทคำสั่งนี้ในระบบ");
|
||||
|
|
@ -174,7 +174,7 @@ async function handler(msg: amqp.ConsumeMessage): Promise<boolean> {
|
|||
message: `ระบบออกคำสั่งเลขที่ ${command.commandNo}/${command.commandYear + 543} เสร็จสิ้น`,
|
||||
payload: command,
|
||||
},
|
||||
{ userId: user.sub },
|
||||
{ userId: user.sub ?? "" },
|
||||
).catch(console.error);
|
||||
|
||||
return !!result;
|
||||
|
|
@ -188,7 +188,7 @@ async function handler(msg: amqp.ConsumeMessage): Promise<boolean> {
|
|||
message: `ระบบออกคำสั่งเลขที่ ${command.commandNo}/${command.commandYear + 543} ผิดพลาด`,
|
||||
payload: command,
|
||||
},
|
||||
{ userId: user.sub },
|
||||
{ userId: user.sub ?? "" },
|
||||
).catch(console.error);
|
||||
return false;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue