Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed May 9, 2023
1 parent d8b9892 commit f75e4b3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/worker/src/scheduled.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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
};
Expand Down

0 comments on commit f75e4b3

Please sign in to comment.