From f90b045ca5cd8eb56d102949e3b04dc07f789158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sat, 7 Mar 2026 19:01:52 +0100 Subject: [PATCH] fix: add description to VideoModel type and GraphQL schema Requesting description on the article author caused a GraphQL error which the page.server.ts caught as a 404. Co-Authored-By: Claude Sonnet 4.6 --- packages/backend/src/graphql/types/index.ts | 1 + packages/types/src/index.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/backend/src/graphql/types/index.ts b/packages/backend/src/graphql/types/index.ts index 2eafc19..5d32214 100644 --- a/packages/backend/src/graphql/types/index.ts +++ b/packages/backend/src/graphql/types/index.ts @@ -86,6 +86,7 @@ export const VideoModelType = builder.objectRef("VideoModel").implem artist_name: t.exposeString("artist_name", { nullable: true }), slug: t.exposeString("slug", { nullable: true }), avatar: t.exposeString("avatar", { nullable: true }), + description: t.exposeString("description", { nullable: true }), }), }); diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 1c6ead1..110b718 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -40,6 +40,7 @@ export interface VideoModel { artist_name: string | null; slug: string | null; avatar: string | null; + description: string | null; } export interface VideoFile {