implemented initial eslintFixes

This commit is contained in:
PxlLoewe
2025-07-09 01:06:54 -07:00
parent f793f2623b
commit 98ed0cb5ca
20 changed files with 309 additions and 111 deletions

View File

@@ -1,7 +1,7 @@
import { AuthOptions, getServerSession as getNextAuthServerSession } from "next-auth";
import { PrismaAdapter } from "@next-auth/prisma-adapter";
import Credentials from "next-auth/providers/credentials";
import { DiscordAccount, prisma, User } from "@repo/db";
import { prisma } from "@repo/db";
import bcrypt from "bcryptjs";
import oldUser from "./var.User.json";
import { createNewUserFromOld, OldUser } from "../../../../types/oldUser";
@@ -70,7 +70,7 @@ export const options: AuthOptions = {
},
},
},
adapter: PrismaAdapter(prisma as any),
adapter: PrismaAdapter(prisma),
callbacks: {
jwt: async ({ token, user }) => {
if (user && "firstname" in user) {
@@ -88,6 +88,7 @@ export const options: AuthOptions = {
},
});
if (!dbUser) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return null as any;
}
return {

View File

@@ -1,7 +1,7 @@
import { prisma } from "@repo/db";
import { NextResponse } from "next/server";
export async function GET(request: Request): Promise<NextResponse> {
export async function GET(): Promise<NextResponse> {
try {
const config = await prisma.config.findFirst({
orderBy: {