添加网球详情
This commit is contained in:
12
lib/api.ts
12
lib/api.ts
@@ -167,7 +167,7 @@ export const fetchTodayMatches = async (options: {
|
||||
const year = options.date.getFullYear();
|
||||
const month = String(options.date.getMonth() + 1).padStart(2, "0");
|
||||
const day = String(options.date.getDate()).padStart(2, "0");
|
||||
params.date = `${year}-${month}-${day}`;
|
||||
params.date = `${year}-${month}-${day}`;
|
||||
} else {
|
||||
params.date = options.date;
|
||||
}
|
||||
@@ -214,11 +214,11 @@ export const fetchLiveScore = async (
|
||||
leagueId?: number,
|
||||
timezone?: string,
|
||||
): Promise<LiveScoreMatch[]> => {
|
||||
// console.log("Fetching live scores with params:", {
|
||||
// sportId,
|
||||
// leagueId,
|
||||
// timezone,
|
||||
// });
|
||||
console.log("Fetching live scores with params:", {
|
||||
sportId,
|
||||
leagueId,
|
||||
timezone,
|
||||
});
|
||||
try {
|
||||
const params: { sport_id: number; league_id?: number; timezone?: string } =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user