first step for plr game platform
This commit is contained in:
@@ -180,7 +180,7 @@ export class ReunionService {
|
||||
meta: { total: 0, uniqueHippodromes: 0, upcomingReunions: 0, pastReunions: 0 },
|
||||
},
|
||||
params.page,
|
||||
params.perPage
|
||||
params.size
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -197,7 +197,7 @@ export class ReunionService {
|
||||
meta: { total: 0, uniqueHippodromes: 0, upcomingReunions: 0, pastReunions: 0 },
|
||||
},
|
||||
params.page,
|
||||
params.perPage
|
||||
params.size
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -273,8 +273,8 @@ export class ReunionService {
|
||||
// Apply client-side filtering, sorting, and pagination
|
||||
let filtered = this.applyClientFilters(transformedData, params);
|
||||
const total = filtered.length;
|
||||
const start = (params.page - 1) * params.perPage;
|
||||
const pageData = filtered.slice(start, start + params.perPage);
|
||||
const start = (params.page - 1) * params.size;
|
||||
const pageData = filtered.slice(start, start + params.size);
|
||||
|
||||
const upcomingReunions = filtered.filter(
|
||||
(r) => new Date(r.date) >= new Date()
|
||||
@@ -288,7 +288,7 @@ export class ReunionService {
|
||||
meta: { total, uniqueHippodromes, upcomingReunions, pastReunions },
|
||||
},
|
||||
params.page,
|
||||
params.perPage
|
||||
params.size
|
||||
);
|
||||
})
|
||||
);
|
||||
@@ -359,8 +359,8 @@ export class ReunionService {
|
||||
});
|
||||
}
|
||||
|
||||
const start = (params.page - 1) * params.perPage;
|
||||
const pageData = data.slice(start, start + params.perPage);
|
||||
const start = (params.page - 1) * params.size;
|
||||
const pageData = data.slice(start, start + params.size);
|
||||
|
||||
const upcomingReunions = data.filter((r) => new Date(r.date) >= new Date()).length;
|
||||
const pastReunions = data.filter((r) => new Date(r.date) < new Date()).length;
|
||||
@@ -373,7 +373,7 @@ export class ReunionService {
|
||||
meta: { total: data.length, uniqueHippodromes, upcomingReunions, pastReunions },
|
||||
},
|
||||
params.page,
|
||||
params.perPage
|
||||
params.size
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user