fix(api): 🐛 banner custom colors

This commit is contained in:
Guz013
2023-06-29 16:35:05 -03:00
parent 16897f956a
commit 48bd5ee419

View File

@@ -13,8 +13,8 @@ export const GET = (async ({ params, url, fetch }) => {
const rtl: boolean = url.searchParams.get('rtl') !== 'false' && url.searchParams.get('rtl') !== null;
const colors: BannerOptions['colors'] = {
foreground: url.searchParams.get('foreground') ?? '#000000',
background: url.searchParams.get('background') ?? '#ffffff',
foreground: `#${url.searchParams.get('foreground') ?? '000000'}`,
background: `#${url.searchParams.get('background') ?? 'ffffff'}`,
};
const banner = await createBanner({