mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 22:09:16 +01:00
refactor(worker): 🚚 Move queue code to plugin-kit package
This commit is contained in:
parent
dc802ff5f6
commit
7de4b573e3
27 changed files with 68 additions and 57 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue