refactor(database): 🚚 Rename Application to Client everywhere

This commit is contained in:
Jesse Wierzbinski 2025-08-21 01:21:32 +02:00
parent 6f97903f3b
commit 1a0a27bee1
No known key found for this signature in database
25 changed files with 2549 additions and 90 deletions

View file

@ -14,7 +14,7 @@ import { type ZodAny, ZodError, z } from "zod/v4";
import { fromZodError } from "zod-validation-error";
import type { AuthData, HonoEnv } from "~/types/api";
import { ApiError } from "./api-error.ts";
import { Application } from "./db/application.ts";
import { Client } from "./db/application.ts";
import { Emoji } from "./db/emoji.ts";
import { Note } from "./db/note.ts";
import { Token } from "./db/token.ts";
@ -170,7 +170,7 @@ export const auth = <AuthRequired extends boolean>(options: {
const auth: AuthData = {
token,
application: token?.data.client
? new Application(token?.data.client)
? new Client(token?.data.client)
: null,
user: (await token?.getUser()) ?? null,
};