diff --git a/packages/worker/src/scheduled.ts b/packages/worker/src/scheduled.ts index 0faafa73..c9a7c37d 100644 --- a/packages/worker/src/scheduled.ts +++ b/packages/worker/src/scheduled.ts @@ -1,6 +1,3 @@ -import type { Prisma } from '@prisma/client/edge'; - -// import { parse } from 'anitomy'; import { Resource, fetchDmhyPage } from 'animegarden'; import { tradToSimple, fullToHalf } from 'simptrad'; @@ -102,9 +99,6 @@ export function transformResource(resource: Resource) { createdAt: new Date(new Date(resource.createdAt).getTime() - 8 * 60 * 60 * 1000), // createdAt: new Date(resource.createdAt), anitomy: undefined, - // resource.type === '動畫' - // ? (parse(resource.title) as Prisma.JsonObject | undefined) - // : undefined, fansubId: resource.fansub?.id ? +resource.fansub?.id : undefined, publisherId: +resource.publisher.id };