refactor: remove 'direktur' role from push notifications in multiple services for clarity

This commit is contained in:
Yoga Pangestu 2026-07-16 12:33:28 +07:00
parent a29e6af430
commit b3f59708a6
5 changed files with 7 additions and 7 deletions

View File

@ -278,7 +278,7 @@ private function notifyOwner(string $typeLabel, string $body, string $url): void
$this->pushNotificationService->sendToRoles(
"📦 {$typeLabel}",
$body,
['owner', 'developer', 'direktur'],
['owner', 'developer'],
$url,
);
}

View File

@ -234,7 +234,7 @@ public function createVariantAndDraft(array $validated, User $user): array
$this->pushNotificationService->sendToRoles(
'🆕 Varian Baru Ditambahkan',
"{$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]),
);
@ -694,7 +694,7 @@ private function notifyForPendingRequest(User $user, string $typeLabel, string $
$this->pushNotificationService->sendToRoles(
"📦 {$typeLabel} Menunggu Persetujuan Owner",
$body,
['owner', 'developer', 'direktur'],
['owner', 'developer'],
$ownerUrl,
);

View File

@ -551,7 +551,7 @@ private function notifyForPendingRequest(User $user, string $typeLabel, string $
$this->pushNotificationService->sendToRoles(
"📦 {$typeLabel} Menunggu Persetujuan Owner",
$body,
['owner', 'developer', 'direktur'],
['owner', 'developer'],
$ownerUrl,
);

View File

@ -619,7 +619,7 @@ private function notifyOwner(string $typeLabel, string $body, string $url): void
$this->pushNotificationService->sendToRoles(
"📦 {$typeLabel}",
$body,
['owner', 'developer', 'direktur'],
['owner', 'developer'],
$url,
);
}
@ -634,7 +634,7 @@ private function notifyForPendingRequest(User $user, string $typeLabel, string $
$this->pushNotificationService->sendToRoles(
"📦 {$typeLabel} Menunggu Persetujuan Owner",
$body,
['owner', 'developer', 'direktur'],
['owner', 'developer'],
$ownerUrl,
);

View File

@ -236,7 +236,7 @@ private function notifyOwner(string $typeLabel, string $body, string $url): void
$this->pushNotificationService->sendToRoles(
"📦 {$typeLabel}",
$body,
['owner', 'developer', 'direktur'],
['owner', 'developer'],
$url,
);
}