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(
|
||||
"📦 {$typeLabel}",
|
||||
$body,
|
||||
['owner', 'developer', 'direktur'],
|
||||
['owner', 'developer'],
|
||||
$url,
|
||||
);
|
||||
}
|
||||
|
||||
@ -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,
|
||||
);
|
||||
|
||||
|
||||
@ -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,
|
||||
);
|
||||
|
||||
|
||||
@ -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,
|
||||
);
|
||||
|
||||
|
||||
@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user