fix: Fix TypeScript errors in assets route and add banner_url to MicrodaoSummary
This commit is contained in:
@@ -15,14 +15,14 @@ export async function GET(
|
||||
request: NextRequest,
|
||||
{ params }: { params: Promise<{ path: string[] }> }
|
||||
) {
|
||||
return handleAssetRequest(request, params);
|
||||
return handleAssetRequest(request, { params });
|
||||
}
|
||||
|
||||
export async function HEAD(
|
||||
request: NextRequest,
|
||||
{ params }: { params: Promise<{ path: string[] }> }
|
||||
) {
|
||||
return handleAssetRequest(request, params);
|
||||
return handleAssetRequest(request, { params });
|
||||
}
|
||||
|
||||
async function handleAssetRequest(
|
||||
|
||||
@@ -29,6 +29,7 @@ export interface MicrodaoSummary {
|
||||
|
||||
// Stats
|
||||
logo_url?: string | null;
|
||||
banner_url?: string | null;
|
||||
member_count: number;
|
||||
agents_count: number; // backward compatibility
|
||||
room_count: number;
|
||||
|
||||
Reference in New Issue
Block a user