Skip to content

Commit d1a7796

Browse files
fix: normalize local group logo
1 parent ac3529f commit d1a7796

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/content.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const events = defineCollection({
6767
sourceId: z.string(),
6868
groupId: z.string(),
6969
groupName: z.string(),
70-
groupLogo: z.string().nullable(),
70+
groupLogo: z.string().nullable().transform((value) => toLocalGroupLogo(value)),
7171
title: z.string(),
7272
description: z.string().nullable(),
7373
date: z.number(),
@@ -83,7 +83,7 @@ const videos = defineCollection({
8383
sourceId: z.string(),
8484
groupId: z.string(),
8585
groupName: z.string(),
86-
groupLogo: z.string().nullable(),
86+
groupLogo: z.string().nullable().transform((value) => toLocalGroupLogo(value)),
8787
title: z.string(),
8888
player: z.string(),
8989
url: z.string().nullable(),

0 commit comments

Comments
 (0)