mirror of
https://github.com/versia-pub/server.git
synced 2025-12-08 09:18:19 +01:00
style: 🚨 Run Biome
This commit is contained in:
parent
3484b1e1a1
commit
0e9db83279
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { htmlToText } from "@/content_types.ts";
|
||||||
import { Note, PushSubscription, Token, User } from "@versia/kit/db";
|
import { Note, PushSubscription, Token, User } from "@versia/kit/db";
|
||||||
import { Worker } from "bullmq";
|
import { Worker } from "bullmq";
|
||||||
import { sendNotification } from "web-push";
|
import { sendNotification } from "web-push";
|
||||||
|
|
@ -8,7 +9,6 @@ import {
|
||||||
type PushJobType,
|
type PushJobType,
|
||||||
pushQueue,
|
pushQueue,
|
||||||
} from "../queues/push.ts";
|
} from "../queues/push.ts";
|
||||||
import { htmlToText } from "@/content_types.ts";
|
|
||||||
|
|
||||||
export const getPushWorker = (): Worker<PushJobData, void, PushJobType> =>
|
export const getPushWorker = (): Worker<PushJobData, void, PushJobType> =>
|
||||||
new Worker<PushJobData, void, PushJobType>(
|
new Worker<PushJobData, void, PushJobType>(
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import type { ContentFormat } from "@versia/federation/types";
|
import type { ContentFormat } from "@versia/federation/types";
|
||||||
|
import { htmlToText as htmlToTextLib } from "html-to-text";
|
||||||
import { lookup } from "mime-types";
|
import { lookup } from "mime-types";
|
||||||
import { config } from "~/packages/config-manager";
|
import { config } from "~/packages/config-manager";
|
||||||
import { htmlToText as htmlToTextLib } from "html-to-text";
|
|
||||||
|
|
||||||
export const getBestContentType = (
|
export const getBestContentType = (
|
||||||
content?: ContentFormat | null,
|
content?: ContentFormat | null,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue