website refactor
This commit is contained in:
@@ -3,9 +3,9 @@ import { GetAvatarPageQuery } from '@/lib/page-queries/media/GetAvatarPageQuery'
|
||||
|
||||
export async function GET(
|
||||
request: NextRequest,
|
||||
{ params }: { params: { driverId: string } }
|
||||
{ params }: { params: Promise<{ driverId: string }> }
|
||||
) {
|
||||
const { driverId } = params;
|
||||
const { driverId } = await params;
|
||||
|
||||
const result = await GetAvatarPageQuery.execute({ driverId });
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ import { GetCategoryIconPageQuery } from '@/lib/page-queries/media/GetCategoryIc
|
||||
|
||||
export async function GET(
|
||||
request: NextRequest,
|
||||
{ params }: { params: { categoryId: string } }
|
||||
{ params }: { params: Promise<{ categoryId: string }> }
|
||||
) {
|
||||
const { categoryId } = params;
|
||||
const { categoryId } = await params;
|
||||
|
||||
const result = await GetCategoryIconPageQuery.execute({ categoryId });
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ import { GetLeagueCoverPageQuery } from '@/lib/page-queries/media/GetLeagueCover
|
||||
|
||||
export async function GET(
|
||||
request: NextRequest,
|
||||
{ params }: { params: { leagueId: string } }
|
||||
{ params }: { params: Promise<{ leagueId: string }> }
|
||||
) {
|
||||
const { leagueId } = params;
|
||||
const { leagueId } = await params;
|
||||
|
||||
const result = await GetLeagueCoverPageQuery.execute({ leagueId });
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ import { GetLeagueLogoPageQuery } from '@/lib/page-queries/media/GetLeagueLogoPa
|
||||
|
||||
export async function GET(
|
||||
request: NextRequest,
|
||||
{ params }: { params: { leagueId: string } }
|
||||
{ params }: { params: Promise<{ leagueId: string }> }
|
||||
) {
|
||||
const { leagueId } = params;
|
||||
const { leagueId } = await params;
|
||||
|
||||
const result = await GetLeagueLogoPageQuery.execute({ leagueId });
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ import { GetSponsorLogoPageQuery } from '@/lib/page-queries/media/GetSponsorLogo
|
||||
|
||||
export async function GET(
|
||||
request: NextRequest,
|
||||
{ params }: { params: { sponsorId: string } }
|
||||
{ params }: { params: Promise<{ sponsorId: string }> }
|
||||
) {
|
||||
const { sponsorId } = params;
|
||||
const { sponsorId } = await params;
|
||||
|
||||
const result = await GetSponsorLogoPageQuery.execute({ sponsorId });
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ import { GetTeamLogoPageQuery } from '@/lib/page-queries/media/GetTeamLogoPageQu
|
||||
|
||||
export async function GET(
|
||||
request: NextRequest,
|
||||
{ params }: { params: { teamId: string } }
|
||||
{ params }: { params: Promise<{ teamId: string }> }
|
||||
) {
|
||||
const { teamId } = params;
|
||||
const { teamId } = await params;
|
||||
|
||||
const result = await GetTeamLogoPageQuery.execute({ teamId });
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ import { GetTrackImagePageQuery } from '@/lib/page-queries/media/GetTrackImagePa
|
||||
|
||||
export async function GET(
|
||||
request: NextRequest,
|
||||
{ params }: { params: { trackId: string } }
|
||||
{ params }: { params: Promise<{ trackId: string }> }
|
||||
) {
|
||||
const { trackId } = params;
|
||||
const { trackId } = await params;
|
||||
|
||||
const result = await GetTrackImagePageQuery.execute({ trackId });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user