tickera-angular-components 0.0.1-dev.94 → 0.0.1-dev.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2551,13 +2551,18 @@ class PerformanceService {
|
|
|
2551
2551
|
constructor(apiService) {
|
|
2552
2552
|
this.apiService = apiService;
|
|
2553
2553
|
}
|
|
2554
|
-
fetchPerformances(showId, search) {
|
|
2554
|
+
fetchPerformances({ showId, roomMapId, hallId, search, limit, }) {
|
|
2555
2555
|
const queryParams = new URLSearchParams();
|
|
2556
2556
|
if (showId)
|
|
2557
2557
|
queryParams.append('show_id', showId.toString());
|
|
2558
|
+
if (roomMapId)
|
|
2559
|
+
queryParams.append('room_map_id', roomMapId.toString());
|
|
2560
|
+
if (hallId)
|
|
2561
|
+
queryParams.append('hall_id', hallId.toString());
|
|
2558
2562
|
if (search)
|
|
2559
2563
|
queryParams.append('search', search);
|
|
2560
|
-
|
|
2564
|
+
if (limit)
|
|
2565
|
+
queryParams.append('search', limit.toString());
|
|
2561
2566
|
const queryString = queryParams.toString();
|
|
2562
2567
|
const apiRoute = `${PERFORMANCES_API_ROUTES.findAll}${queryString ? '?' + queryString : ''}`;
|
|
2563
2568
|
return this.apiService.get(apiRoute);
|
|
@@ -2576,7 +2581,7 @@ class PerformanceService {
|
|
|
2576
2581
|
return this.apiService.get(apiRoute);
|
|
2577
2582
|
}
|
|
2578
2583
|
loadPerformances({ showId, search } = {}) {
|
|
2579
|
-
this.fetchPerformances(showId, search).subscribe({
|
|
2584
|
+
this.fetchPerformances({ showId, search }).subscribe({
|
|
2580
2585
|
next: ({ data }) => {
|
|
2581
2586
|
this.performancesSubject.next(data?.performances ?? []);
|
|
2582
2587
|
},
|