upd : typo kata
Deskripsi: - Silahkan menjadi silakan :: tanpa h No Issues
This commit is contained in:
@@ -254,7 +254,7 @@ export async function POST(request: Request) {
|
||||
category: 'division/' + idDivision + '/task',
|
||||
idContent: data.id,
|
||||
title: 'Tugas Baru',
|
||||
desc: 'Terdapat tugas baru. Silahkan periksa detailnya.'
|
||||
desc: 'Terdapat tugas baru. Silakan periksa detailnya.'
|
||||
}))
|
||||
|
||||
const dataPush = memberDivision.map((v: any) => ({
|
||||
@@ -286,7 +286,7 @@ export async function POST(request: Request) {
|
||||
category: 'division/' + idDivision + '/task',
|
||||
idContent: data.id,
|
||||
title: 'Tugas Baru',
|
||||
desc: 'Terdapat tugas baru. Silahkan periksa detailnya.'
|
||||
desc: 'Terdapat tugas baru. Silakan periksa detailnya.'
|
||||
})
|
||||
|
||||
dataPush.push({
|
||||
@@ -318,7 +318,7 @@ export async function POST(request: Request) {
|
||||
category: 'division/' + idDivision + '/task',
|
||||
idContent: data.id,
|
||||
title: 'Tugas Baru',
|
||||
desc: 'Terdapat tugas baru. Silahkan periksa detailnya.'
|
||||
desc: 'Terdapat tugas baru. Silakan periksa detailnya.'
|
||||
})
|
||||
|
||||
dataPush.push({
|
||||
@@ -329,7 +329,7 @@ export async function POST(request: Request) {
|
||||
|
||||
const pushNotif = dataPush.filter((item) => item.subscription != undefined)
|
||||
|
||||
const sendWebPush = await funSendWebPush({ sub: pushNotif, message: { body: 'Terdapat tugas baru. Silahkan periksa detailnya.', title: 'Tugas Baru' } })
|
||||
const sendWebPush = await funSendWebPush({ sub: pushNotif, message: { body: 'Terdapat tugas baru. Silakan periksa detailnya.', title: 'Tugas Baru' } })
|
||||
const insertNotif = await prisma.notifications.createMany({
|
||||
data: dataNotif
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user