fix: make sure series/movies endpoints use correct type

This commit is contained in:
Max Richter
2025-10-31 17:55:02 +01:00
parent de0b2e7a8f
commit ab9c0f96e0
4 changed files with 47 additions and 67 deletions

View File

@@ -1,17 +1,21 @@
export type Movie = {
id: string;
name: string;
description: string;
type: "movie";
tags: string[];
meta: {
date: Date;
tmdbId?: number;
keywords?: string[];
image: string;
thumbnail?: string;
average?: string;
author: string;
rating: number;
_type: "Review";
tmdbId?: number;
link?: string;
author?: {
_type: "Person";
name?: string;
};
datePublished?: string;
reviewRating?: {
bestRating?: number;
worstRating?: number;
ratingValue?: number;
};
reviewBody?: string;
itemReviewed?: {
name?: string;
};
keywords?: string[];
image?: string;
};

View File

@@ -1,17 +1,3 @@
export type Series = {
id: string;
name: string;
description: string;
type: "series";
tags: string[];
meta: {
date: Date;
image: string;
author: string;
tmdbId?: number;
rating: number;
average?: string;
thumbnail?: string;
done?: boolean;
};
};
import { Movie } from "./movies.ts";
export type Series = Movie;