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}`,
|
message: `ระบบทำการออกคำสั่งเลขที่ ${command.commandNo}/${command.commandYear + 543}`,
|
||||||
payload: command,
|
payload: command,
|
||||||
},
|
},
|
||||||
{ userId: user.sub },
|
{ userId: user.sub ?? "" },
|
||||||
).catch(console.error);
|
).catch(console.error);
|
||||||
const path = commandTypePath(command.commandType.code);
|
const path = commandTypePath(command.commandType.code);
|
||||||
if (path == null) throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบประเภทคำสั่งนี้ในระบบ");
|
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} เสร็จสิ้น`,
|
message: `ระบบออกคำสั่งเลขที่ ${command.commandNo}/${command.commandYear + 543} เสร็จสิ้น`,
|
||||||
payload: command,
|
payload: command,
|
||||||
},
|
},
|
||||||
{ userId: user.sub },
|
{ userId: user.sub ?? "" },
|
||||||
).catch(console.error);
|
).catch(console.error);
|
||||||
|
|
||||||
return !!result;
|
return !!result;
|
||||||
|
|
@ -188,7 +188,7 @@ async function handler(msg: amqp.ConsumeMessage): Promise<boolean> {
|
||||||
message: `ระบบออกคำสั่งเลขที่ ${command.commandNo}/${command.commandYear + 543} ผิดพลาด`,
|
message: `ระบบออกคำสั่งเลขที่ ${command.commandNo}/${command.commandYear + 543} ผิดพลาด`,
|
||||||
payload: command,
|
payload: command,
|
||||||
},
|
},
|
||||||
{ userId: user.sub },
|
{ userId: user.sub ?? "" },
|
||||||
).catch(console.error);
|
).catch(console.error);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue