chore: ⬆️ Upgrade dependencies

This commit is contained in:
Jesse Wierzbinski 2024-12-18 20:42:40 +01:00
parent f67fed12e0
commit 1509786090
No known key found for this signature in database
16 changed files with 35 additions and 34 deletions

View file

@ -1,5 +1,3 @@
import type { Context, MiddlewareHandler } from "@hono/hono";
import { createMiddleware } from "@hono/hono/factory";
import type { OpenAPIHono } from "@hono/zod-openapi";
import { getLogger } from "@logtape/logtape";
import { Application, Token, db } from "@versia/kit/db";
@ -7,6 +5,8 @@ import { Challenges } from "@versia/kit/tables";
import { extractParams, verifySolution } from "altcha-lib";
import chalk from "chalk";
import { type SQL, eq } from "drizzle-orm";
import type { Context, MiddlewareHandler } from "hono";
import { createMiddleware } from "hono/factory";
import {
anyOf,
caseInsensitive,
@ -429,7 +429,7 @@ export const setContextFormDataToObject = (
* Add it to random Hono routes and hope it works
* @returns
*/
export const jsonOrForm = (): MiddlewareHandler => {
export const jsonOrForm = (): MiddlewareHandler<HonoEnv> => {
return createMiddleware(async (context, next) => {
const contentType = context.req.header("content-type");

View file

@ -1,8 +1,8 @@
import { createBullBoard } from "@bull-board/api";
import { BullMQAdapter } from "@bull-board/api/bullMQAdapter";
import { HonoAdapter } from "@bull-board/hono";
import { serveStatic } from "@hono/hono/bun";
import type { OpenAPIHono } from "@hono/zod-openapi";
import { serveStatic } from "hono/bun";
import { deliveryQueue } from "~/classes/queues/delivery";
import { fetchQueue } from "~/classes/queues/fetch";
import { inboxQueue } from "~/classes/queues/inbox";
@ -37,6 +37,5 @@ export const applyToHono = (app: OpenAPIHono<HonoEnv>): void => {
});
serverAdapter.setBasePath("/admin/queues");
// @ts-expect-error idk why this is not working
app.route("/admin/queues", serverAdapter.registerPlugin());
};