Skip to content

Commit 64353e4

Browse files
Merge pull request #168 from sergiocarracedo/feat/revamp
fix(content): normalize local group logo paths
2 parents 3d4b430 + d1a7796 commit 64353e4

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)