refactor(database): 🚚 Only import ORM abstractions from @versia/kit

This commit is contained in:
Jesse Wierzbinski 2024-11-01 20:57:16 +01:00
parent f26493140f
commit 2f8b85a299
No known key found for this signature in database
100 changed files with 150 additions and 154 deletions

View file

@ -1,9 +1,6 @@
import { describe, expect, it } from "bun:test";
import { checkIfOauthIsValid } from "@/oauth";
import {
Application,
type ApplicationType,
} from "~/classes/database/application";
import { Application, type ApplicationType } from "@versia/kit/db";
describe("checkIfOauthIsValid", () => {
it("should return true when routeScopes and application.scopes are empty", () => {

View file

@ -1,10 +1,9 @@
import { generateChallenge } from "@/challenges";
import { randomString } from "@/math";
import { Note, User } from "@versia/kit/db";
import { solveChallenge } from "altcha-lib";
import { asc, inArray, like } from "drizzle-orm";
import { appFactory } from "~/app";
import { Note } from "~/classes/database/note";
import { User } from "~/classes/database/user";
import type { Status } from "~/classes/functions/status";
import { searchManager } from "~/classes/search/search-manager";
import { db } from "~/drizzle/db";