feat: add thai text to notification

This commit is contained in:
Methapon2001 2025-03-05 14:50:08 +07:00
parent 17b92b4012
commit f583448e5f
4 changed files with 22 additions and 22 deletions

View file

@ -280,8 +280,8 @@ export class RequestDataActionController extends Controller {
.then(async (res) => {
await tx.notification.createMany({
data: res.map((v) => ({
title: "Quotation Status Updated",
detail: v.code + " Canceled",
title: "สถานะใบเสนอราคาเปลี่ยนแปลง / Quotation Status Updated",
detail: "รหัส / code : " + v.code + " Canceled",
receiverId: v.createdByUserId,
})),
});
@ -428,8 +428,8 @@ export class RequestDataActionController extends Controller {
.then(async (res) => {
await tx.notification.createMany({
data: res.map((v) => ({
title: "Quotation Status Updated",
detail: v.code + " Canceled",
title: "สถานะใบเสนอราคาเปลี่ยนแปลง / Quotation Status Updated",
detail: "รหัส / code : " + v.code + " Canceled",
receiverId: v.createdByUserId,
})),
});
@ -519,8 +519,8 @@ export class RequestDataActionController 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,
})),
});
@ -856,8 +856,8 @@ export class RequestListController extends Controller {
.then(async (res) => {
await tx.notification.createMany({
data: res.map((v) => ({
title: "Quotation Status Updated",
detail: v.code + " Canceled",
title: "สถานะใบเสนอราคาเปลี่ยนแปลง / Quotation Status Updated",
detail: "รหัส / code : " + v.code + " Canceled",
receiverId: v.createdByUserId,
})),
});
@ -948,8 +948,8 @@ export class RequestListController 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,
})),
});