refactor(worker): 🚚 Move queue code to plugin-kit package
Some checks failed
Mirror to Codeberg / Mirror (push) Failing after 1s
Test Publish / build (client) (push) Failing after 1s
Test Publish / build (sdk) (push) Failing after 1s

This commit is contained in:
Jesse Wierzbinski 2025-06-29 22:56:52 +02:00
parent dc802ff5f6
commit 7de4b573e3
No known key found for this signature in database
27 changed files with 68 additions and 57 deletions

View file

@ -10,13 +10,13 @@ import {
withUserParam,
} from "@versia-server/kit/api";
import { Relationship } from "@versia-server/kit/db";
import { describeRoute } from "hono-openapi";
import { resolver, validator } from "hono-openapi/zod";
import { z } from "zod";
import {
RelationshipJobType,
relationshipQueue,
} from "~/classes/queues/relationships";
} from "@versia-server/kit/queues/relationships";
import { describeRoute } from "hono-openapi";
import { resolver, validator } from "hono-openapi/zod";
import { z } from "zod";
export default apiRoute((app) =>
app.post(

View file

@ -8,7 +8,7 @@ import { and, eq, isNull } from "drizzle-orm";
import { describeRoute } from "hono-openapi";
import { resolver } from "hono-openapi/zod";
import type { z } from "zod";
import manifest from "~/package.json" with { type: "json" };
import manifest from "../../../../../../package.json" with { type: "json" };
export default apiRoute((app) =>
app.get(

View file

@ -6,7 +6,7 @@ import { Users } from "@versia-server/kit/tables";
import { and, eq, isNull } from "drizzle-orm";
import { describeRoute } from "hono-openapi";
import { resolver } from "hono-openapi/zod";
import pkg from "~/package.json" with { type: "json" };
import pkg from "../../../../../../package.json" with { type: "json" };
export default apiRoute((app) =>
app.get(

View file

@ -1,8 +1,8 @@
import { apiRoute, handleZodError } from "@versia-server/kit/api";
import { InboxJobType, inboxQueue } from "@versia-server/kit/queues/inbox";
import { describeRoute } from "hono-openapi";
import { validator } from "hono-openapi/zod";
import { z } from "zod";
import { InboxJobType, inboxQueue } from "~/classes/queues/inbox";
export default apiRoute((app) =>
app.post(

View file

@ -1,9 +1,9 @@
import { ApiError } from "@versia-server/kit";
import { apiRoute, handleZodError } from "@versia-server/kit/api";
import { InboxJobType, inboxQueue } from "@versia-server/kit/queues/inbox";
import { describeRoute } from "hono-openapi";
import { resolver, validator } from "hono-openapi/zod";
import { z } from "zod";
import { InboxJobType, inboxQueue } from "~/classes/queues/inbox";
export default apiRoute((app) =>
app.post(

View file

@ -4,7 +4,7 @@ import { Note, User } from "@versia-server/kit/db";
import { describeRoute } from "hono-openapi";
import { resolver } from "hono-openapi/zod";
import { z } from "zod";
import manifest from "~/package.json" with { type: "json" };
import manifest from "../../../../../../package.json" with { type: "json" };
export default apiRoute((app) =>
app.get(

View file

@ -7,7 +7,7 @@ import { asc } from "drizzle-orm";
import { describeRoute } from "hono-openapi";
import { resolver } from "hono-openapi/zod";
import { urlToContentFormat } from "@/content_types";
import pkg from "~/package.json" with { type: "json" };
import pkg from "../../../../package.json" with { type: "json" };
export default apiRoute((app) =>
app.get(