refactor: remove 'direktur' role from push notifications in multiple services for clarity
This commit is contained in:
parent
a29e6af430
commit
b3f59708a6
@ -278,7 +278,7 @@ private function notifyOwner(string $typeLabel, string $body, string $url): void
|
|||||||
$this->pushNotificationService->sendToRoles(
|
$this->pushNotificationService->sendToRoles(
|
||||||
"📦 {$typeLabel}",
|
"📦 {$typeLabel}",
|
||||||
$body,
|
$body,
|
||||||
['owner', 'developer', 'direktur'],
|
['owner', 'developer'],
|
||||||
$url,
|
$url,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -234,7 +234,7 @@ public function createVariantAndDraft(array $validated, User $user): array
|
|||||||
$this->pushNotificationService->sendToRoles(
|
$this->pushNotificationService->sendToRoles(
|
||||||
'🆕 Varian Baru Ditambahkan',
|
'🆕 Varian Baru Ditambahkan',
|
||||||
"{$user->name} menambahkan varian \"{$price->variant}\" ke bahan baku \"{$rawMaterial->name}\".",
|
"{$user->name} menambahkan varian \"{$price->variant}\" ke bahan baku \"{$rawMaterial->name}\".",
|
||||||
['owner', 'developer', 'direktur'],
|
['owner', 'developer'],
|
||||||
route('admin.master.raw_materials.index', ['search_id' => $rawMaterial->id]),
|
route('admin.master.raw_materials.index', ['search_id' => $rawMaterial->id]),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -694,7 +694,7 @@ private function notifyForPendingRequest(User $user, string $typeLabel, string $
|
|||||||
$this->pushNotificationService->sendToRoles(
|
$this->pushNotificationService->sendToRoles(
|
||||||
"📦 {$typeLabel} Menunggu Persetujuan Owner",
|
"📦 {$typeLabel} Menunggu Persetujuan Owner",
|
||||||
$body,
|
$body,
|
||||||
['owner', 'developer', 'direktur'],
|
['owner', 'developer'],
|
||||||
$ownerUrl,
|
$ownerUrl,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -551,7 +551,7 @@ private function notifyForPendingRequest(User $user, string $typeLabel, string $
|
|||||||
$this->pushNotificationService->sendToRoles(
|
$this->pushNotificationService->sendToRoles(
|
||||||
"📦 {$typeLabel} Menunggu Persetujuan Owner",
|
"📦 {$typeLabel} Menunggu Persetujuan Owner",
|
||||||
$body,
|
$body,
|
||||||
['owner', 'developer', 'direktur'],
|
['owner', 'developer'],
|
||||||
$ownerUrl,
|
$ownerUrl,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -619,7 +619,7 @@ private function notifyOwner(string $typeLabel, string $body, string $url): void
|
|||||||
$this->pushNotificationService->sendToRoles(
|
$this->pushNotificationService->sendToRoles(
|
||||||
"📦 {$typeLabel}",
|
"📦 {$typeLabel}",
|
||||||
$body,
|
$body,
|
||||||
['owner', 'developer', 'direktur'],
|
['owner', 'developer'],
|
||||||
$url,
|
$url,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -634,7 +634,7 @@ private function notifyForPendingRequest(User $user, string $typeLabel, string $
|
|||||||
$this->pushNotificationService->sendToRoles(
|
$this->pushNotificationService->sendToRoles(
|
||||||
"📦 {$typeLabel} Menunggu Persetujuan Owner",
|
"📦 {$typeLabel} Menunggu Persetujuan Owner",
|
||||||
$body,
|
$body,
|
||||||
['owner', 'developer', 'direktur'],
|
['owner', 'developer'],
|
||||||
$ownerUrl,
|
$ownerUrl,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -236,7 +236,7 @@ private function notifyOwner(string $typeLabel, string $body, string $url): void
|
|||||||
$this->pushNotificationService->sendToRoles(
|
$this->pushNotificationService->sendToRoles(
|
||||||
"📦 {$typeLabel}",
|
"📦 {$typeLabel}",
|
||||||
$body,
|
$body,
|
||||||
['owner', 'developer', 'direktur'],
|
['owner', 'developer'],
|
||||||
$url,
|
$url,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user