mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(database): ♻️ Move Token to its own ORM abstraction, optimize familiar_followers route
This commit is contained in:
parent
962c159ddd
commit
845041e4db
55 changed files with 694 additions and 504 deletions
|
|
@ -11,10 +11,10 @@ import type {
|
|||
Unfollow,
|
||||
User,
|
||||
} from "@versia/federation/types";
|
||||
import type { Application, User as DatabaseUser } from "@versia/kit/db";
|
||||
import type { RolePermissions } from "@versia/kit/tables";
|
||||
import type { SocketAddress } from "bun";
|
||||
import { z } from "zod";
|
||||
import type { AuthData } from "~/classes/functions/user";
|
||||
import type { Config } from "~/packages/config-manager";
|
||||
|
||||
export type HttpVerb = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
|
||||
|
|
@ -52,11 +52,7 @@ export const ErrorSchema = z.object({
|
|||
export type HonoEnv = {
|
||||
Variables: {
|
||||
config: Config;
|
||||
auth: {
|
||||
user: DatabaseUser | null;
|
||||
token: string | null;
|
||||
application: Application | null;
|
||||
};
|
||||
auth: AuthData;
|
||||
};
|
||||
Bindings: {
|
||||
ip?: SocketAddress | null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue