fix: ensure unique services mapping when creating api payload
This commit is contained in:
@@ -126,6 +126,7 @@ class BookingFingerprintService
|
||||
private function normalizeServiceArray(array $services): array
|
||||
{
|
||||
$ids = array_map(fn ($s) => $s->id, $services);
|
||||
$ids = array_unique($ids);
|
||||
sort($ids);
|
||||
|
||||
return array_values($ids);
|
||||
|
||||
Reference in New Issue
Block a user