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 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 19:01:52 +01:00
parent d2cbb1004f
commit f90b045ca5
2 changed files with 2 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ export const VideoModelType = builder.objectRef<VideoModel>("VideoModel").implem
artist_name: t.exposeString("artist_name", { nullable: true }), artist_name: t.exposeString("artist_name", { nullable: true }),
slug: t.exposeString("slug", { nullable: true }), slug: t.exposeString("slug", { nullable: true }),
avatar: t.exposeString("avatar", { nullable: true }), avatar: t.exposeString("avatar", { nullable: true }),
description: t.exposeString("description", { nullable: true }),
}), }),
}); });

View File

@@ -40,6 +40,7 @@ export interface VideoModel {
artist_name: string | null; artist_name: string | null;
slug: string | null; slug: string | null;
avatar: string | null; avatar: string | null;
description: string | null;
} }
export interface VideoFile { export interface VideoFile {