fix: dont import node:path in clientside components

This commit is contained in:
Max Richter
2025-10-31 15:41:46 +01:00
parent 7e60327940
commit 79d692c2c6
21 changed files with 68 additions and 67 deletions

View File

@@ -6,7 +6,7 @@ import { isString, safeFileName } from "@lib/string.ts";
import { createDocument } from "@lib/documents.ts";
import { AccessDeniedError } from "@lib/errors.ts";
import { Series } from "@lib/resource/series.ts";
import { fetchResource } from "@lib/resources.ts";
import { fetchResource } from "@lib/marka.ts";
export const handler: Handlers = {
async GET(_, ctx) {
@@ -37,9 +37,8 @@ export const handler: Handlers = {
const poster = await tmdb.getMoviePoster(posterPath);
const extension = fileExtension(posterPath);
finalPath = `Media/series/images/${
safeFileName(name)
}_cover.${extension}`;
finalPath = `Media/series/images/${safeFileName(name)
}_cover.${extension}`;
await createDocument(finalPath, poster);
}