Skip to content

Commit

Permalink
πŸ› fix: Fix func typo
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 authored Dec 23, 2023
1 parent a35001d commit 5a86506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/sponsor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ImageResponse } from '@vercel/og';

import cors from '../lib/cors';
import Sponsor from '../src/Sponsor';
import { caleHeight, fechOpenCollectiveData, fetchFonts, getNumber } from '../src/Sponsor/utils';
import { caleHeight, fetchOpenCollectiveData, fetchFonts, getNumber } from '../src/Sponsor/utils';

const MULTIPLE = 2;

Expand All @@ -18,7 +18,7 @@ export default async function handler(request: Request): Promise<any> {
const width = getNumber(searchParams.get('width'), 800 * MULTIPLE);
const themeMode = searchParams.get('themeMode') === 'dark' ? 'dark' : 'light';
const id = searchParams.get('id') || 'lobehub';
const data = await fechOpenCollectiveData(id);
const data = await fetchOpenCollectiveData(id);
const { fontBold, fontRegular } = await fetchFonts();
const height = caleHeight(data, { avatarSize, width });

Expand Down

0 comments on commit 5a86506

Please sign in to comment.