diff --git a/classes/workers/push.ts b/classes/workers/push.ts index 6c477245..663d224d 100644 --- a/classes/workers/push.ts +++ b/classes/workers/push.ts @@ -1,3 +1,4 @@ +import { htmlToText } from "@/content_types.ts"; import { Note, PushSubscription, Token, User } from "@versia/kit/db"; import { Worker } from "bullmq"; import { sendNotification } from "web-push"; @@ -8,7 +9,6 @@ import { type PushJobType, pushQueue, } from "../queues/push.ts"; -import { htmlToText } from "@/content_types.ts"; export const getPushWorker = (): Worker => new Worker( diff --git a/utils/content_types.ts b/utils/content_types.ts index 16bdacd2..5dece767 100644 --- a/utils/content_types.ts +++ b/utils/content_types.ts @@ -1,7 +1,7 @@ import type { ContentFormat } from "@versia/federation/types"; +import { htmlToText as htmlToTextLib } from "html-to-text"; import { lookup } from "mime-types"; import { config } from "~/packages/config-manager"; -import { htmlToText as htmlToTextLib } from "html-to-text"; export const getBestContentType = ( content?: ContentFormat | null,