feat: add thai text to notification
This commit is contained in:
parent
17b92b4012
commit
f583448e5f
4 changed files with 22 additions and 22 deletions
|
|
@ -520,8 +520,8 @@ export class TaskController extends Controller {
|
|||
if (body.taskOrderStatus && record.taskOrderStatus !== body.taskOrderStatus) {
|
||||
await prisma.notification.create({
|
||||
data: {
|
||||
title: "Task Submitted",
|
||||
detail: "Task submitted in order: " + record.code,
|
||||
title: "มีการส่งงาน / Task Submitted",
|
||||
detail: "รหัสใบสั่งงาน / Order : " + record.code,
|
||||
receiverId: record.createdByUserId,
|
||||
},
|
||||
});
|
||||
|
|
@ -666,8 +666,8 @@ export class TaskActionController extends Controller {
|
|||
}),
|
||||
prisma.notification.create({
|
||||
data: {
|
||||
title: "Task Submitted",
|
||||
detail: "Task submitted in order: " + record.code,
|
||||
title: "มีการส่งงาน / Task Submitted",
|
||||
detail: "รหัสใบสั่งงาน / Order : " + record.code,
|
||||
receiverId: record.createdByUserId,
|
||||
},
|
||||
}),
|
||||
|
|
@ -824,8 +824,8 @@ export class TaskActionController extends Controller {
|
|||
.then(async (res) => {
|
||||
await tx.notification.createMany({
|
||||
data: res.map((v) => ({
|
||||
title: "Quotation Status Updated",
|
||||
detail: v.code + " Completed",
|
||||
title: "สถานะใบเสนอราคาเปลี่ยนแปลง / Quotation Status Updated",
|
||||
detail: "รหัส / code : " + v.code + " Completed",
|
||||
receiverId: v.createdByUserId,
|
||||
})),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue